API access when using LDAP authorization

This commit is contained in:
Ultra2D
2016-03-10 14:48:01 +01:00
parent d63744c32c
commit 12a3b305ed
@@ -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;
}