only admin can edit customer

This commit is contained in:
iBNu Maksum 2024-10-23 14:13:32 +07:00
parent f8878ad8b6
commit cd5f9101f2
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -314,7 +314,7 @@ switch ($action) {
} }
break; break;
case 'edit': case 'edit':
if (!in_array($admin['user_type'], ['SuperAdmin', 'Admin', 'Agent'])) { if (!in_array($admin['user_type'], ['SuperAdmin', 'Admin'])) {
_alert(Lang::T('You do not have permission to access this page'), 'danger', "dashboard"); _alert(Lang::T('You do not have permission to access this page'), 'danger', "dashboard");
} }
$id = $routes['2']; $id = $routes['2'];