fix(import/export): allow import of deleted resoruces

This commit is contained in:
Iraq Jaber
2025-06-20 14:40:16 +02:00
parent 3a4298c179
commit e953f48212

View File

@@ -325,7 +325,7 @@ func (c *Commands) AddOrgWithID(ctx context.Context, name, userID, resourceOwner
if err != nil { if err != nil {
return nil, err return nil, err
} }
if existingOrg.State != domain.OrgStateUnspecified { if existingOrg.State != domain.OrgStateUnspecified && existingOrg.State != domain.OrgStateRemoved {
return nil, zerrors.ThrowNotFound(nil, "ORG-lapo2m", "Errors.Org.AlreadyExisting") return nil, zerrors.ThrowNotFound(nil, "ORG-lapo2m", "Errors.Org.AlreadyExisting")
} }