diff --git a/module/common/model.php b/module/common/model.php index 962a8b1a59..a19eaffc22 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -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'];