diff options
author | Vladimirs Maksimovs <vladimirs.maksimovs@zabbix.com> | 2020-10-06 11:44:25 +0300 |
---|---|---|
committer | Vladimirs Maksimovs <vladimirs.maksimovs@zabbix.com> | 2020-10-06 11:44:25 +0300 |
commit | 4fbea8a644d14c731f2f9c7793f124dfb49575d6 (patch) | |
tree | 2405561b092480b207395088e0d207b3d673fbd0 /ui/app/controllers/CControllerRegExDelete.php | |
parent | 6284344e0519dea6af5837e0dcf4b395644e423a (diff) |
..F....... [ZBXNEXT-6148] added access check by role rules to part of controllers
Diffstat (limited to 'ui/app/controllers/CControllerRegExDelete.php')
-rw-r--r-- | ui/app/controllers/CControllerRegExDelete.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/controllers/CControllerRegExDelete.php b/ui/app/controllers/CControllerRegExDelete.php index 3afb6f762f0..e772d89a492 100644 --- a/ui/app/controllers/CControllerRegExDelete.php +++ b/ui/app/controllers/CControllerRegExDelete.php @@ -40,7 +40,7 @@ class CControllerRegExDelete extends CController { } protected function checkPermissions() { - if ($this->getUserType() != USER_TYPE_SUPER_ADMIN) { + if (!$this->checkAccess(CRoleHelper::UI_ADMINISTRATION_GENERAL)) { return false; } |