/** * Checks if the current authentication contains the group * {@link Groups#CAMUNDA_ADMIN}. The check is ignored if the authorization is * disabled or no authentication exists. * * @throws AuthorizationException */ public void checkCamundaAdmin() { final Authentication currentAuthentication = getCurrentAuthentication(); CommandContext commandContext = Context.getCommandContext(); if (isAuthorizationEnabled() && commandContext.isAuthorizationCheckEnabled() && currentAuthentication != null && !isCamundaAdmin(currentAuthentication)) { throw LOG.requiredCamundaAdminException(); } }
/** * Checks if the current authentication contains the group * {@link Groups#CAMUNDA_ADMIN}. The check is ignored if the authorization is * disabled or no authentication exists. * * @throws AuthorizationException */ public void checkCamundaAdmin() { final Authentication currentAuthentication = getCurrentAuthentication(); CommandContext commandContext = Context.getCommandContext(); if (isAuthorizationEnabled() && commandContext.isAuthorizationCheckEnabled() && currentAuthentication != null && !isCamundaAdmin(currentAuthentication)) { throw LOG.requiredCamundaAdminException(); } }
public boolean isTenantCheckEnabled() { return Context.getProcessEngineConfiguration().isTenantCheckEnabled() && Context.getCommandContext().isTenantCheckEnabled() && getCurrentAuthentication() != null && !getAuthorizationManager().isCamundaAdmin(getCurrentAuthentication()); }
public boolean isTenantCheckEnabled() { return Context.getProcessEngineConfiguration().isTenantCheckEnabled() && Context.getCommandContext().isTenantCheckEnabled() && getCurrentAuthentication() != null && !getAuthorizationManager().isCamundaAdmin(getCurrentAuthentication()); }
/** * Checks if the current authentication contains the group * {@link Groups#CAMUNDA_ADMIN}. The check is ignored if the authorization is * disabled or no authentication exists. * * @throws AuthorizationException */ public void checkCamundaAdmin() { final Authentication currentAuthentication = getCurrentAuthentication(); CommandContext commandContext = Context.getCommandContext(); if (isAuthorizationEnabled() && commandContext.isAuthorizationCheckEnabled() && currentAuthentication != null && !isCamundaAdmin(currentAuthentication)) { throw LOG.requiredCamundaAdminException(); } }
public boolean isTenantCheckEnabled() { return Context.getProcessEngineConfiguration().isTenantCheckEnabled() && Context.getCommandContext().isTenantCheckEnabled() && getCurrentAuthentication() != null && !getAuthorizationManager().isCamundaAdmin(getCurrentAuthentication()); }