mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-01 16:38:52 +00:00
event data search query
This commit is contained in:
@@ -48,6 +48,9 @@ func (wm *WriteModel) Reduce() error {
|
||||
wm.UserID = e.UserID
|
||||
wm.Roles = e.Roles
|
||||
case *RemovedEvent:
|
||||
if e.UserID != wm.userID {
|
||||
continue
|
||||
}
|
||||
wm.Roles = nil
|
||||
wm.IsRemoved = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user