hdygxsj commented on code in PR #8941:
URL: https://github.com/apache/gravitino/pull/8941#discussion_r2471844612


##########
server-common/src/main/java/org/apache/gravitino/server/authorization/expression/AuthorizationExpressionEvaluator.java:
##########
@@ -89,8 +89,9 @@ public boolean evaluate(
   public boolean evaluate(
       Map<Entity.EntityType, NameIdentifier> metadataNames,
       AuthorizationRequestContext requestContext,
-      Principal principal) {
-    return evaluate(metadataNames, new HashMap<>(), requestContext, principal);
+      Principal principal,
+      String entityType) {
+    return evaluate(metadataNames, new HashMap<>(), requestContext, principal, 
entityType);

Review Comment:
   requestContext is used for GravitinoAuthorizer, and type is only used by 
AuthorizationExpressionEvaluator. It seems a bit odd to put type into 
requestContext.
   



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