This commit is contained in:
zhaoke
2023-09-04 12:48:32 +08:00
parent abd0127b8f
commit bb2d61df71
7 changed files with 64 additions and 2 deletions
+3
View File
@@ -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;