mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 09:45:03 +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
|
@ -15,7 +15,7 @@ $admin = Admin::_info();
|
|||
$ui->assign('_admin', $admin);
|
||||
$cache = File::pathFixer('system/cache/codecanyon.json');
|
||||
|
||||
if ($admin['user_type'] != 'Admin') {
|
||||
if (!in_array($admin['user_type'], ['SuperAdmin', 'Admin'])) {
|
||||
r2(U . "dashboard", 'e', $_L['Do_Not_Access']);
|
||||
}
|
||||
if (empty($config['envato_token'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue