Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/controllers/CControllerUserTokenList.php')
-rw-r--r--ui/app/controllers/CControllerUserTokenList.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/app/controllers/CControllerUserTokenList.php b/ui/app/controllers/CControllerUserTokenList.php
index 984fc327a1c..6f7e7b1be94 100644
--- a/ui/app/controllers/CControllerUserTokenList.php
+++ b/ui/app/controllers/CControllerUserTokenList.php
@@ -49,6 +49,10 @@ class CControllerUserTokenList extends CController {
}
protected function checkPermissions() {
+ if (CWebUser::isGuest()) {
+ return false;
+ }
+
return $this->checkAccess(CRoleHelper::ACTIONS_MANAGE_API_TOKENS);
}