protected boolean hasObjectPermission ( ModeledAuthenticatedUser user , String identifier , ObjectPermission . Type type ) throws GuacamoleException { // Get object permissions ObjectPermissionSet permissionSet = getEffectivePermissionSet ( user ) ; // Return whether permission is granted return user . getUser ( ) . isAdministrator ( ) || permissionSet . hasPermission ( type , identifier ) ; }
Returns whether the given user has permission to perform a certain action on a specific object managed by this directory object service taking into account permission inheritance through user groups .