Remove false condition

This commit is contained in:
André Duffeck
2023-07-11 15:42:21 +02:00
committed by Roman Perekhod
parent 4bb10ebdf3
commit 1aa114c336

View File

@@ -88,9 +88,9 @@ func (s *Service) Search(ctx context.Context, req *searchsvc.SearchRequest) (*se
}
req.Query = query
if len(scope) > 0 {
if req.Ref != nil {
return nil, errtypes.BadRequest("cannot scope a search that is limited to a resource")
}
// if req.Ref != nil {
// return nil, errtypes.BadRequest("cannot scope a search that is limited to a resource")
// }
scopeRef, err := extractScope(scope)
if err != nil {
return nil, err