mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 17:54:41 +02:00
UserType 'SuperAdmin','Admin','Report','Agent','Sales'
This commit is contained in:
parent
bf6ec9d4cd
commit
792b1367d3
18 changed files with 62 additions and 49 deletions
|
@ -13,7 +13,7 @@ $action = $routes['1'];
|
|||
$admin = Admin::_info();
|
||||
$ui->assign('_admin', $admin);
|
||||
|
||||
if ($admin['user_type'] != 'Admin') {
|
||||
if (!in_array($admin['user_type'], ['SuperAdmin', 'Admin'])) {
|
||||
r2(U . "dashboard", 'e', $_L['Do_Not_Access']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue