GUAC-1101: Do not query accessible identifiers if none given.

This commit is contained in:
Michael Jumper
2015-02-28 22:46:46 -08:00
parent 12c00c9749
commit d104a3170b

View File

@@ -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();