mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 18:37:17 +01:00
Fix filtering for users when $gid is empty
Previously when $gid was empty the users were not filtered at all. Rendering the search function in the user management pretty useless. Fixes itself
This commit is contained in:
@@ -161,7 +161,7 @@ class UsersController extends Controller {
|
||||
if($gid !== '') {
|
||||
$batch = $this->getUsersForUID($this->groupManager->displayNamesInGroup($gid, $pattern, $limit, $offset));
|
||||
} else {
|
||||
$batch = $this->userManager->search('', $limit, $offset);
|
||||
$batch = $this->userManager->search($pattern, $limit, $offset);
|
||||
}
|
||||
|
||||
foreach ($batch as $user) {
|
||||
|
||||
Reference in New Issue
Block a user