From adca9425529a1947f1fccfdec61dd500500ce25a Mon Sep 17 00:00:00 2001 From: Ultra2D Date: Tue, 12 Dec 2017 14:46:29 +0100 Subject: [PATCH] Fix: Add user level to getUser for LDAP authentication (#7896) * Fix: Add user level to getUser for LDAP authentication * Fix: Add user level to getUser for LDAP authentication for current user only --- LibreNMS/Authentication/LdapAuthorizer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/LibreNMS/Authentication/LdapAuthorizer.php b/LibreNMS/Authentication/LdapAuthorizer.php index a09c1bf347..d825cf6e83 100644 --- a/LibreNMS/Authentication/LdapAuthorizer.php +++ b/LibreNMS/Authentication/LdapAuthorizer.php @@ -177,6 +177,7 @@ class LdapAuthorizer extends AuthorizerBase { foreach ($this->getUserlist() as $user) { if ($user['user_id'] === $user_id) { + $user['level'] = $this->getUserlevel($user['username']); return $user; } }