* Modify the login time permission judgment
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user