code: private boolean hasObjectPermissions(ModeledAuthenticatedUser user,
              String identifier, ObjectPermission.Type type)
              throws GuacamoleException {
          
          ObjectPermissionSet permissionSet = getPermissionSet(user);
          
          return user.getUser().isAdministrator() 
                  || permissionSet.hasPermission(type, identifier);
          
      }
docs: Return a boolean value representing whether or not a user has the given
  permission available to them on the active connection with the given
  identifier.
  
  @param user
  The user for which the permissions are being queried.
  
  @param identifier
  The identifier of the active connection we are wondering about.
  
  @param type
  The type of permission being requested.
  
  @return
  True if the user has the necessary permission; otherwise false.
  
  @throws GuacamoleException
  If the user does not have access to read permissions.