mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:17:32 +00:00
fix(api): handle user disabling events correctly in session API (#7380)
This PR makes sure that user disabling events (deactivate, locked, ...) are correctly checked for sessions.
This commit is contained in:
@@ -18,7 +18,7 @@ func (s UserState) Exists() bool {
|
||||
return s != UserStateUnspecified && s != UserStateDeleted
|
||||
}
|
||||
|
||||
func (s UserState) NotDisabled() bool {
|
||||
func (s UserState) IsEnabled() bool {
|
||||
return s == UserStateActive || s == UserStateInitial
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user