mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user