Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/SystemController.php')
-rw-r--r--lib/Controller/SystemController.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Controller/SystemController.php b/lib/Controller/SystemController.php
index 9c8326cf..d4c15963 100644
--- a/lib/Controller/SystemController.php
+++ b/lib/Controller/SystemController.php
@@ -148,8 +148,9 @@ class SystemController extends Controller {
}
if ($getUsers) {
- foreach ($this->userManager->searchDisplayName($query) as $user) {
- if (!in_array($user->getUID(), $skipUsers)) {
+ $users = $this->userManager->searchDisplayName($query);
+ foreach ($users as $user) {
+ if (!in_array($user->getUID(), $skipUsers) && $user->isEnabled()) {
$list[] = [
'id' => $user->getUID(),
'user' => $user->getUID(),