mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
fix: checkAdditionalActionAllowed for unlimited (#3165)
This commit is contained in:
parent
ab62f2d79d
commit
78af86db98
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user