From e953f482122b2e81655e4e7d9f08d64a5044e5ab Mon Sep 17 00:00:00 2001 From: Iraq Jaber Date: Fri, 20 Jun 2025 14:40:16 +0200 Subject: [PATCH] fix(import/export): allow import of deleted resoruces --- internal/command/org.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/command/org.go b/internal/command/org.go index faab882d68..b6c5d02d7e 100644 --- a/internal/command/org.go +++ b/internal/command/org.go @@ -325,7 +325,7 @@ func (c *Commands) AddOrgWithID(ctx context.Context, name, userID, resourceOwner if err != nil { 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") }