Skip to content

Commit

Permalink
Merge pull request #142 from zitadel/dont-ignore-code-7
Browse files Browse the repository at this point in the history
fix: permission denied isn't not found
  • Loading branch information
eliobischof authored Dec 5, 2023
2 parents 3b80379 + 481ce15 commit f579a02
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 f579a02

Please sign in to comment.