private boolean hasObjectPermissions(ModeledAuthenticatedUser user,
            String identifier, ObjectPermission.Type type)
            throws GuacamoleException {
        
        ObjectPermissionSet permissionSet = getPermissionSet(user);
        
        return user.isPrivileged()
                || permissionSet.hasPermission(type, identifier);
        
    }
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.
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/activeconnection/ActiveConnectionService.java