Class SubjectTenantIsSamePermission

java.lang.Object
org.craftercms.profile.management.security.permissions.SubjectTenantIsSamePermission
All Implemented Interfaces:
org.craftercms.commons.security.permissions.Permission

public class SubjectTenantIsSamePermission extends Object implements org.craftercms.commons.security.permissions.Permission
Permission that ensures that the current profile isn't trying to modify a tenant that it's not its own tenant or a profile that doesn't correspond to its own tenant.
Author:
avasquez
  • Constructor Details

    • SubjectTenantIsSamePermission

      public SubjectTenantIsSamePermission(String subjectTenant, String tenant)
  • Method Details

    • isAllowed

      public boolean isAllowed(String action)
      Specified by:
      isAllowed in interface org.craftercms.commons.security.permissions.Permission