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:
Ultra2D
2017-12-12 14:46:29 +01:00
committed by Tony Murray
parent 92f83c2567
commit adca942552

View File

@@ -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;
}
}