UserType 'SuperAdmin','Admin','Report','Agent','Sales'

This commit is contained in:
Ibnu Maksum
2024-02-12 17:02:43 +07:00
parent bf6ec9d4cd
commit 792b1367d3
18 changed files with 62 additions and 49 deletions

View File

@ -12,7 +12,7 @@ $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']);
}