From 78af86db98fc49319c058fd622b7fe1ae57dbccf Mon Sep 17 00:00:00 2001 From: Livio Amstutz Date: Mon, 7 Feb 2022 10:36:18 +0100 Subject: [PATCH] fix: checkAdditionalActionAllowed for unlimited (#3165) --- internal/command/org_action.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/command/org_action.go b/internal/command/org_action.go index 6e5c219e76..41d47b4898 100644 --- a/internal/command/org_action.go +++ b/internal/command/org_action.go @@ -59,7 +59,7 @@ func (c *Commands) checkAdditionalActionAllowed(ctx context.Context, resourceOwn activeActions = append(activeActions, existingAction) } } - if len(activeActions) < features.MaxActions { + if features.ActionsAllowed == domain.ActionsAllowedUnlimited || len(activeActions) < features.MaxActions { return nil } return caos_errs.ThrowPreconditionFailed(nil, "COMMAND-dfwg2", "Errors.Action.MaxAllowed")