From 12a3b305ed92bc4715108ae33ff74d5e0b3111f2 Mon Sep 17 00:00:00 2001 From: Ultra2D Date: Thu, 10 Mar 2016 14:48:01 +0100 Subject: [PATCH] API access when using LDAP authorization --- html/includes/authentication/ldap-authorization.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/includes/authentication/ldap-authorization.inc.php b/html/includes/authentication/ldap-authorization.inc.php index 89717557a..5b68fdf82 100644 --- a/html/includes/authentication/ldap-authorization.inc.php +++ b/html/includes/authentication/ldap-authorization.inc.php @@ -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; }