* Check is the super admin or not by admins of company when user's admin field is empty.

This commit is contained in:
daitingting
2018-05-29 09:21:51 +08:00
parent a0d160896c
commit c16e2c2bd2

View File

@@ -1244,7 +1244,7 @@ EOD;
global $app, $lang;
/* Check is the super admin or not. */
if(!empty($app->user->admin)) return true;
if(!empty($app->user->admin) || strpos($app->company->admins, ",{$app->user->account},") !== false) return true;
/* If not super admin, check the rights. */
$rights = $app->user->rights['rights'];
$acls = $app->user->rights['acls'];