mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
fix: add project validation (#996)
This commit is contained in:
parent
7e3ace7a96
commit
5d2c053f87
@ -513,7 +513,7 @@ func addProjectValidation(projectName string) func(...*es_models.Event) error {
|
||||
case model.ProjectChanged:
|
||||
_, project := model.GetProject(projects, event.AggregateID)
|
||||
project.AppendAddProjectEvent(event)
|
||||
case model.ProjectRoleRemoved:
|
||||
case model.ProjectRemoved:
|
||||
for i, project := range projects {
|
||||
if project.AggregateID == event.AggregateID {
|
||||
projects[i] = projects[len(projects)-1]
|
||||
|
Loading…
Reference in New Issue
Block a user