From 481ce15ac462eb4c07b3b81ef35734bb86d58420 Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Tue, 5 Dec 2023 09:41:14 +0100 Subject: [PATCH] fix: permission denied isn't not found --- zitadel/helper/client.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zitadel/helper/client.go b/zitadel/helper/client.go index 11cf4bdb..fcf0ca53 100644 --- a/zitadel/helper/client.go +++ b/zitadel/helper/client.go @@ -140,8 +140,7 @@ func CtxSetOrgID(ctx context.Context, orgID string) context.Context { } func IgnoreIfNotFoundError(err error) error { - //permission denied included as nothing can be found then as well - if code := status.Code(err); code == codes.NotFound || code == codes.PermissionDenied { + if code := status.Code(err); code == codes.NotFound { return nil } return err