mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
fix: use of getDolGlobal in module builder template
This commit is contained in:
@@ -740,12 +740,13 @@ class MyObject extends CommonObject
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (! ((getDolGlobalInt('MAIN_USE_ADVANCED_PERMS') && !empty($user->rights->mymodule->write))
|
||||
|| (getDolGlobalInt('MAIN_USE_ADVANCED_PERMS') && !empty($user->rights->mymodule->mymodule_advance->validate))))
|
||||
/*if (! ((!getDolGlobalInt('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('mymodule','write'))
|
||||
|| (getDolGlobalInt('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('mymodule','mymodule_advance','validate'))))
|
||||
{
|
||||
$this->error='Permission denied';
|
||||
return -1;
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
return $this->setStatusCommon($user, self::STATUS_VALIDATED, $notrigger, 'MYOBJECT_REOPEN');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user