Skip to content

Commit

Permalink
fix: permission denied isn't not found
Browse files Browse the repository at this point in the history
  • Loading branch information
eliobischof committed Dec 5, 2023
1 parent 3b80379 commit 481ce15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zitadel/helper/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 481ce15

Please sign in to comment.