Update mymoduleindex.php

This commit is contained in:
Frédéric FRANCE 2021-01-06 20:29:47 +01:00 committed by GitHub
parent 7a26a1212c
commit ccfba6a9f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,10 +48,11 @@ $action = GETPOST('action', 'aZ09');
// Security check
//if (! $user->rights->mymodule->myobject->read) accessforbidden();
// if (! $user->rights->mymodule->myobject->read) {
// accessforbidden();
// }
$socid = GETPOST('socid', 'int');
if (isset($user->socid) && $user->socid > 0)
{
if (isset($user->socid) && $user->socid > 0) {
$action = '';
$socid = $user->socid;
}