summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-08-10 15:01:14 +0200
committerGitHub <noreply@github.com>2018-08-10 15:01:14 +0200
commit7aad5b7721bbecf673b1adb4f40a9b561bf6949e (patch)
tree4f1e48e73efc56bca65529b002cc1a86eeb5eab2 /lib
parent674d5f292426007caca622e8a3279b4b099087aa (diff)
parentc80049516992cdd06c5d6cf7265af1abe4156f98 (diff)
downloadnextcloud-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.php4
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();
+ }
}
}