diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-08-10 15:01:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-10 15:01:14 +0200 |
commit | 7aad5b7721bbecf673b1adb4f40a9b561bf6949e (patch) | |
tree | 4f1e48e73efc56bca65529b002cc1a86eeb5eab2 /lib | |
parent | 674d5f292426007caca622e8a3279b4b099087aa (diff) | |
parent | c80049516992cdd06c5d6cf7265af1abe4156f98 (diff) | |
download | nextcloud-server-7aad5b7721bbecf673b1adb4f40a9b561bf6949e.tar.gz nextcloud-server-7aad5b7721bbecf673b1adb4f40a9b561bf6949e.zip |
Merge pull request #10543 from nextcloud/ignore-deactivated-users
Do not show deactivated users in sharees and contacts
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Collaboration/Collaborators/UserPlugin.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Collaboration/Collaborators/UserPlugin.php b/lib/private/Collaboration/Collaborators/UserPlugin.php index 62f76876031..971b7025564 100644 --- a/lib/private/Collaboration/Collaborators/UserPlugin.php +++ b/lib/private/Collaboration/Collaborators/UserPlugin.php @@ -79,7 +79,9 @@ class UserPlugin implements ISearchPlugin { $usersTmp = $this->userManager->searchDisplayName($search, $limit, $offset); foreach ($usersTmp as $user) { - $users[$user->getUID()] = $user->getDisplayName(); + if ($user->isEnabled()) { // Don't keep deactivated users + $users[$user->getUID()] = $user->getDisplayName(); + } } } |