Abhijeetsng97 commented on code in PR #14364:
URL: https://github.com/apache/gravitino/pull/14364#discussion_r4603192743


##########
core/src/main/java/org/apache/gravitino/policy/ObjectPolicyResolver.java:
##########
@@ -50,8 +56,11 @@
  *
  * <p>The resolver evaluates relation selectors, filters disabled policies, 
and deduplicates
  * repeated matches by policy entity ID while preserving contributing 
metadata-object sources.
+ *
+ * <p>The reader methods expose direct tag assignments and unfiltered policy 
bindings for
+ * authorization, which evaluates selectors after checking privileges and 
active roles.
  */
-public class ObjectPolicyResolver {
+public class ObjectPolicyResolver implements TagPolicyReader {

Review Comment:
   removed interface and folded it into ObjectPolicyResolver



##########
core/src/main/java/org/apache/gravitino/policy/ObjectPolicyResolver.java:
##########
@@ -225,18 +297,6 @@ private static Match[] selectMatches(
         .toArray(Match[]::new);
   }
 
-  private static boolean matches(PolicyAssociationSelector selector, 
TagAssignment assignment) {

Review Comment:
   folded it into ObjectPolicyResolver



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

Reply via email to