mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-22 12:51:31 +00:00
fix: correct event type for permission removed (#9626)
# Which Problems Are Solved When we recently changed some permission for the `SYSTEM_OWNER` role on QA, we noticed that there we multiple `permission.added` even when we removed specific permissions. # How the Problems Are Solved Fixed the event type when removing permissions. # Additional Changes None # Additional Context Noticed when rolling out some changes on QA
This commit is contained in:
parent
54e513f312
commit
e7c7f9b800
@ -99,7 +99,7 @@ func (e *RemovedEvent) Fields() []*eventstore.FieldOperation {
|
|||||||
|
|
||||||
func NewRemovedEvent(ctx context.Context, aggregate *eventstore.Aggregate, role, permission string) *RemovedEvent {
|
func NewRemovedEvent(ctx context.Context, aggregate *eventstore.Aggregate, role, permission string) *RemovedEvent {
|
||||||
return &RemovedEvent{
|
return &RemovedEvent{
|
||||||
BaseEvent: eventstore.NewBaseEventForPush(ctx, aggregate, AddedType),
|
BaseEvent: eventstore.NewBaseEventForPush(ctx, aggregate, RemovedType),
|
||||||
Role: role,
|
Role: role,
|
||||||
Permission: permission,
|
Permission: permission,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user