vvivekiyer commented on code in PR #13574:
URL: https://github.com/apache/pinot/pull/13574#discussion_r1674861091


##########
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentUploadDownloadRestletResource.java:
##########
@@ -158,7 +158,7 @@ public Response downloadSegment(
     boolean hasDataAccess;
     try {
       AccessControl accessControl = _accessControlFactory.create();
-      hasDataAccess = accessControl.hasDataAccess(httpHeaders, tableName);
+      hasDataAccess = accessControl.hasAccess(tableName, AccessType.READ, 
httpHeaders, null);

Review Comment:
   @abhioncbr Can we please pass the endpointUrl (/methodName) here and in 
PinotQueryResource (ideally we should pass it in all places where `hasAccess` 
is called). 
   
   Internally at Linkedin, we have different restrictions on READ access for 
downloadSegment and query endpoints.  



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to