From 4fbea8a644d14c731f2f9c7793f124dfb49575d6 Mon Sep 17 00:00:00 2001 From: Vladimirs Maksimovs Date: Tue, 6 Oct 2020 11:44:25 +0300 Subject: ..F....... [ZBXNEXT-6148] added access check by role rules to part of controllers --- ui/app/controllers/CControllerRegExDelete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/app/controllers/CControllerRegExDelete.php') 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; } -- cgit v1.2.3