summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2018-08-06 09:55:24 +0200
committerThomas Citharel <tcit@tcit.fr>2018-08-06 09:55:24 +0200
commit03f1fef1601c21a2c387a20db9e46b21273c15c9 (patch)
tree3fe2b909216f4b99542ca521b6a765c68b990736 /lib/private
parenta311798674880ba7d40c0ad1d3ae0d6b42f1d9b4 (diff)
downloadnextcloud-server-03f1fef1601c21a2c387a20db9e46b21273c15c9.tar.gz
nextcloud-server-03f1fef1601c21a2c387a20db9e46b21273c15c9.zip
Ignore deactivated users in collaborators user search plugin
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'lib/private')
-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();
+ }
}
}