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


##########
server/src/main/java/org/apache/druid/server/security/AuthorizationUtils.java:
##########
@@ -35,29 +37,31 @@
 import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
+import java.util.Optional;
 import java.util.Set;
 
 /**
  * Static utility functions for performing authorization checks.
  */
 public class AuthorizationUtils
 {
+  static final ImmutableSet<String> RESTRICTION_APPLICABLE_RESOURCE_TYPES = 
ImmutableSet.of(
+      ResourceType.DATASOURCE,
+      ResourceType.VIEW

Review Comment:
   actually that's opposite of the status quo, see the `restrictedView` calcite 
tests. the view is created on `forbiddenDatasource` which users don't have 
access to, but they can query the restrictedView. 



-- 
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