mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
API access when using LDAP authorization
This commit is contained in:
@@ -242,7 +242,9 @@ function can_update_users () {
|
||||
|
||||
|
||||
function get_user ($user_id) {
|
||||
// Not supported
|
||||
foreach (get_userlist() as $users) {
|
||||
if ($users['user_id'] === $user_id) return $users['username'];
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user