fix: checkAdditionalActionAllowed for unlimited (#3165)

This commit is contained in:
Livio Amstutz 2022-02-07 10:36:18 +01:00 committed by GitHub
parent ab62f2d79d
commit 78af86db98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ func (c *Commands) checkAdditionalActionAllowed(ctx context.Context, resourceOwn
activeActions = append(activeActions, existingAction) activeActions = append(activeActions, existingAction)
} }
} }
if len(activeActions) < features.MaxActions { if features.ActionsAllowed == domain.ActionsAllowedUnlimited || len(activeActions) < features.MaxActions {
return nil return nil
} }
return caos_errs.ThrowPreconditionFailed(nil, "COMMAND-dfwg2", "Errors.Action.MaxAllowed") return caos_errs.ThrowPreconditionFailed(nil, "COMMAND-dfwg2", "Errors.Action.MaxAllowed")