* Modify the login time permission judgment.

This commit is contained in:
holan20180123
2020-11-27 11:28:05 +08:00
parent a6b21d74b7
commit 8d04de9dd6
+1 -1
View File
@@ -1493,7 +1493,7 @@ EOD;
$method = strtolower($method);
/* Check the parent object is closed. */
if(strpos('close|batchclose', $method) === false and !commonModel::canBeChanged($module, $object)) return false;
if(!empty($method) and strpos('close|batchclose', $method) === false and !commonModel::canBeChanged($module, $object)) return false;
/* Check is the super admin or not. */
if(!empty($app->user->admin) || strpos($app->company->admins, ",{$app->user->account},") !== false) return true;