cecemei commented on code in PR #17864:
URL: https://github.com/apache/druid/pull/17864#discussion_r2035759323


##########
server/src/main/java/org/apache/druid/server/QueryLifecycle.java:
##########
@@ -321,12 +320,8 @@ private AuthorizationResult doAuthorize(
       transition(State.AUTHORIZING, State.UNAUTHORIZED);
     } else {
       transition(State.AUTHORIZING, State.AUTHORIZED);
-      if (this.baseQuery instanceof SegmentMetadataQuery && 
authorizationResult.allowAccessWithNoRestriction()) {
-        // skip restrictions mapping for SegmentMetadataQuery from user with 
no restriction
-      } else {
-        this.baseQuery = 
this.baseQuery.withDataSource(this.baseQuery.getDataSource()
-                                                                     
.withPolicies(authorizationResult.getPolicyMap()));
-      }
+      this.baseQuery = 
this.baseQuery.withDataSource(this.baseQuery.getDataSource()

Review Comment:
   Addressed all comments, PTAL!



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to