mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 01:47:33 +00:00
feat: limit amount of active actions (#3143)
* max actions * fix: max allowed actions * fix: max allowed actions * fix tests
This commit is contained in:
@@ -37,3 +37,11 @@ func (s ActionState) Valid() bool {
|
||||
func (s ActionState) Exists() bool {
|
||||
return s != ActionStateUnspecified && s != ActionStateRemoved
|
||||
}
|
||||
|
||||
type ActionsAllowed int32
|
||||
|
||||
const (
|
||||
ActionsNotAllowed ActionsAllowed = iota
|
||||
ActionsMaxAllowed
|
||||
ActionsAllowedUnlimited
|
||||
)
|
||||
|
@@ -54,7 +54,8 @@ type Features struct {
|
||||
PrivacyPolicy bool
|
||||
MetadataUser bool
|
||||
LockoutPolicy bool
|
||||
Actions bool
|
||||
ActionsAllowed ActionsAllowed
|
||||
MaxActions int
|
||||
}
|
||||
|
||||
type FeaturesState int32
|
||||
|
Reference in New Issue
Block a user