Unistore: Change to 404 rather than 403 if not found (#103743)

This commit is contained in:
Stephanie Hingtgen
2025-04-09 19:14:39 -05:00
committed by GitHub
parent 870d401f75
commit 68ed0feeff
2 changed files with 11 additions and 1 deletions
+3
View File
@@ -654,6 +654,9 @@ func (s *server) Read(ctx context.Context, req *ReadRequest) (*ReadResponse, err
}
rsp := s.backend.ReadResource(ctx, req)
if rsp.Error != nil && rsp.Error.Code == http.StatusNotFound {
return &ReadResponse{Error: rsp.Error}, nil
}
a, err := s.access.Check(ctx, user, claims.CheckRequest{
Verb: "get",