* Modify the login time permission judgment

This commit is contained in:
holan20180123
2020-11-27 11:33:27 +08:00
parent 5bca0d4d44
commit 111f08ca47
+1 -4
View File
@@ -1713,11 +1713,8 @@ EOD;
$module = strtolower($module);
$method = strtolower($method);
$module = strtolower($module);
$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;