Class CommunityAdminFeature

  • All Implemented Interfaces:
    AuthorizationFeature

    @Component
    @AuthorizationFeatureDocumentation(name="isCommunityAdmin",
                                       description="It can be used to verify if the current user is admin of any community in the site")
    public class CommunityAdminFeature
    extends Object
    implements AuthorizationFeature
    The Community Admin feature. It can be used to verify if the current user is admin of any community in the site. Authorization is granted if the current user has ADMIN permissions for any Community anywhere in the site, or if the current user is a site admin.