GUAC-586: List readable users if applicable to management.
This commit is contained in:
1 parent
a72cc118f4
commit
3c46dda5bc
2 files changed
+30
-22
No files matched your search
+1
-1
@@ -169,7 +169,7 @@ public class UserRESTService {
|
||||
|
||||
// Filter users, if requested
|
||||
Collection<String> userIdentifiers = userDirectory.getIdentifiers();
|
||||
if (!isAdmin && permissions != null) {
|
||||
if (!isAdmin && permissions != null && !permissions.isEmpty()) {
|
||||
ObjectPermissionSet userPermissions = self.getUserPermissions();
|
||||
userIdentifiers = userPermissions.getAccessibleObjects(permissions, userIdentifiers);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user