Skip to content

Commit 5827d73

Browse files
committed
No exception in user autocompletion
If auth does not support listing users, just return an empty result.
1 parent 573f2b7 commit 5827d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function handleAjax()
6969
global $INPUT;
7070

7171
if (!$auth->canDo('getUsers')) {
72-
throw new StructException('The user backend can not search for users');
72+
return [];
7373
}
7474

7575
// check minimum length

0 commit comments

Comments
 (0)