diff --git a/.gitignore b/.gitignore index e43b0f9..4befed3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .DS_Store +.idea diff --git a/Classes/Domain/Repository/BackendUserRepository.php b/Classes/Domain/Repository/BackendUserRepository.php index f8a75ed..3ef47ef 100644 --- a/Classes/Domain/Repository/BackendUserRepository.php +++ b/Classes/Domain/Repository/BackendUserRepository.php @@ -25,6 +25,7 @@ public function findByMultipleProperties(string $search): QueryResultInterface $queryBuilder->matching( $queryBuilder->logicalAnd([ $queryBuilder->equals('admin', 0), + $queryBuilder->equals('deleted', 0), $queryBuilder->logicalOr([ $queryBuilder->like('username', "%$search%"), $queryBuilder->like('realName', "%$search%"), @@ -51,6 +52,7 @@ public function findNonAdmins($uids = []): QueryResultInterface $queryBuilder = $this->createQuery(); $constraints[] = $queryBuilder->equals('admin', 0); + $constraints[] = $queryBuilder->equals('deleted', 0); if (!empty($uids)) { $constraints[] = $queryBuilder->in('uid', $uids); }