From f137dde5a0ccb10da298991639eb767b100d72dc Mon Sep 17 00:00:00 2001
From: hg <none@none>
Date: Wed, 8 Oct 2014 15:10:45 +0200
Subject: [PATCH] OO-1232 limit user-without-group search to visible users

---
 src/main/java/org/olat/admin/UserAdminMainController.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/olat/admin/UserAdminMainController.java b/src/main/java/org/olat/admin/UserAdminMainController.java
index 4add87f5542..070a567b5c2 100644
--- a/src/main/java/org/olat/admin/UserAdminMainController.java
+++ b/src/main/java/org/olat/admin/UserAdminMainController.java
@@ -403,7 +403,7 @@ public class UserAdminMainController extends MainLayoutBasicController implement
 		}
 		else if (uobject.equals("userswithoutgroup")) {
 			activatePaneInDetailView = "edit.withoutgroup";
-			List<Identity> usersWithoutGroup = BaseSecurityManager.getInstance().findIdentitiesWithoutBusinessGroup(null);
+			List<Identity> usersWithoutGroup = BaseSecurityManager.getInstance().findIdentitiesWithoutBusinessGroup(Identity.STATUS_VISIBLE_LIMIT);
 			contentCtr = new UsermanagerUserSearchController(ureq, bwControl, usersWithoutGroup, null, true, true);
 			addToHistory(ureq, bwControl);
 			listenTo(contentCtr);
-- 
GitLab