This commit is contained in:
zhaoke
2023-09-04 12:47:49 +08:00
parent f605cf2b0d
commit 14e1673cf5
6 changed files with 47 additions and 42 deletions
+3
View File
@@ -2631,6 +2631,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", $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;