From cd5f9101f2424800a4211af2aee5d6d1a323889a Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Wed, 23 Oct 2024 14:13:32 +0700 Subject: [PATCH] only admin can edit customer --- system/controllers/customers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/controllers/customers.php b/system/controllers/customers.php index 71e252b4..57c20474 100644 --- a/system/controllers/customers.php +++ b/system/controllers/customers.php @@ -314,7 +314,7 @@ switch ($action) { } break; 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"); } $id = $routes['2'];