diff options
author | Vladimirs Maksimovs <vladimirs.maksimovs@zabbix.com> | 2020-10-19 15:04:31 +0300 |
---|---|---|
committer | Vladimirs Maksimovs <vladimirs.maksimovs@zabbix.com> | 2020-10-19 15:04:31 +0300 |
commit | 2b7a3720406796eeafd8fc356d88260ab11c6849 (patch) | |
tree | 2aedbc35802a7d54b15210ce5bb8c694cc3e52e8 /ui | |
parent | 9eef9cbd7addcd89c9b3fa09ca769702280721ed (diff) |
..F....... [ZBXNEXT-6148] fixed access check for trigger displaying options page
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/controllers/CControllerTrigDisplayEdit.php | 2 | ||||
-rw-r--r-- | ui/app/controllers/CControllerTrigDisplayUpdate.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/controllers/CControllerTrigDisplayEdit.php b/ui/app/controllers/CControllerTrigDisplayEdit.php index dbca5a3f21f..4260ac9cc12 100644 --- a/ui/app/controllers/CControllerTrigDisplayEdit.php +++ b/ui/app/controllers/CControllerTrigDisplayEdit.php @@ -62,7 +62,7 @@ class CControllerTrigDisplayEdit extends CController { } protected function checkPermissions() { - return ($this->getUserType() == USER_TYPE_SUPER_ADMIN); + return $this->checkAccess(CRoleHelper::UI_ADMINISTRATION_GENERAL); } protected function doAction() { diff --git a/ui/app/controllers/CControllerTrigDisplayUpdate.php b/ui/app/controllers/CControllerTrigDisplayUpdate.php index f9ec29d2ea6..638f8bbbcd0 100644 --- a/ui/app/controllers/CControllerTrigDisplayUpdate.php +++ b/ui/app/controllers/CControllerTrigDisplayUpdate.php @@ -65,7 +65,7 @@ class CControllerTrigDisplayUpdate extends CController { } protected function checkPermissions() { - return ($this->getUserType() == USER_TYPE_SUPER_ADMIN); + return $this->checkAccess(CRoleHelper::UI_ADMINISTRATION_GENERAL); } protected function doAction() { |