diff options
author | Vladimirs Maksimovs <vladimirs.maksimovs@zabbix.com> | 2020-10-16 08:31:04 +0300 |
---|---|---|
committer | Vladimirs Maksimovs <vladimirs.maksimovs@zabbix.com> | 2020-10-16 08:31:04 +0300 |
commit | 7bad4e2cd10ea3b23b153554b93f40b1fc535da5 (patch) | |
tree | 4229f0d32a44d6de69e16aef38c584959c6bc9ab | |
parent | 0993e38ca1ca653b1e56ba8697074897eb691a93 (diff) |
..F....... [ZBXNEXT-6148] fixed always disabled API access for each user in users list
-rw-r--r-- | ui/app/views/administration.user.list.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/views/administration.user.list.php b/ui/app/views/administration.user.list.php index d6475ad5826..1835070a2ed 100644 --- a/ui/app/views/administration.user.list.php +++ b/ui/app/views/administration.user.list.php @@ -202,7 +202,7 @@ foreach ($data['users'] as $user) { $online, $blocked, (new CSpan(user_auth_type2str($user['gui_access'])))->addClass($gui_access_style), - (CRoleHelper::checkAccess('api', $user['roleid'])) + (CRoleHelper::checkAccess(CRoleHelper::API_ACCESS, $user['roleid'])) ? (new CSpan(_('Enabled')))->addClass(ZBX_STYLE_GREEN) : (new CSpan(_('Disabled')))->addClass(ZBX_STYLE_RED), ($user['debug_mode'] == GROUP_DEBUG_MODE_ENABLED) |