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.
Since:
7.17
See Also:
  • Constructor Details

    • AdminPermissionCheckExemptions

      public AdminPermissionCheckExemptions(DisabledUserManager disabledUserManager, com.atlassian.crowd.embedded.api.CrowdService crowdService)
  • Method Details

    • isExempt

      public boolean isExempt(ConfluenceUser user)
      Description copied from interface: PermissionCheckExemptions
      Returns 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:
      isExempt in interface PermissionCheckExemptions