* Fix bug #38029.
This commit is contained in:
@@ -2587,6 +2587,9 @@ EOF;
|
||||
/* Check the parent object is closed. */
|
||||
if(!empty($method) and strpos('close|batchclose', $method) === false and !commonModel::canBeChanged($module, $object)) return false;
|
||||
|
||||
/* Check the method is openMethod. */
|
||||
if(in_array("$module.$method", $app->config->openMethods)) return true;
|
||||
|
||||
/* Check is the super admin or not. */
|
||||
if(!empty($app->user->admin) or strpos($app->company->admins, ",{$app->user->account},") !== false) return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user