Class AdminPermissionCheckExemptions
java.lang.Object
com.atlassian.confluence.impl.security.AdminPermissionCheckExemptions
- All Implemented Interfaces:
PermissionCheckExemptions
public final class AdminPermissionCheckExemptions
extends Object
implements PermissionCheckExemptions
Allows members of the 'confluence-administrators' group to be exempt from permission checks, or if a temporary
request-level exemption has been applied.
Caches the result of the group membership check for the duration of the request.
-
Constructor Summary
ConstructorsConstructorDescriptionAdminPermissionCheckExemptions(DisabledUserManager disabledUserManager, com.atlassian.crowd.embedded.api.CrowdService crowdService) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisExempt(com.atlassian.user.User user) Returns true if the user is exempt from permission checks, otherwise false.
-
Constructor Details
-
AdminPermissionCheckExemptions
public AdminPermissionCheckExemptions(DisabledUserManager disabledUserManager, com.atlassian.crowd.embedded.api.CrowdService crowdService)
-
-
Method Details
-
isExempt
public boolean isExempt(com.atlassian.user.User user) Description copied from interface:PermissionCheckExemptionsReturns true if the user is exempt from permission checks, otherwise false. The result of calling this should not be cached, because permission exemptions can change within a single request.- Specified by:
isExemptin interfacePermissionCheckExemptions
-