mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1101: Do not query accessible identifiers if none given.
This commit is contained in:
@@ -233,6 +233,10 @@ public abstract class ObjectPermissionService
|
||||
ModeledUser targetUser, Collection<ObjectPermission.Type> permissions,
|
||||
Collection<String> identifiers) throws GuacamoleException {
|
||||
|
||||
// Nothing is always accessible
|
||||
if (identifiers.isEmpty())
|
||||
return identifiers;
|
||||
|
||||
// Determine whether the user is an admin
|
||||
boolean isAdmin = user.getUser().isAdministrator();
|
||||
|
||||
|
Reference in New Issue
Block a user