private boolean hasObjectPermissions ( ModeledAuthenticatedUser user , String identifier , ObjectPermission . Type type ) throws GuacamoleException { ObjectPermissionSet permissionSet = getPermissionSet ( user ) ; return user . getUser ( ) . isAdministrator ( ) || 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 .