mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 18:24:32 +02:00
only admin can edit customer
This commit is contained in:
parent
f8878ad8b6
commit
cd5f9101f2
1 changed files with 1 additions and 1 deletions
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue