jerqi commented on code in PR #9018:
URL: https://github.com/apache/gravitino/pull/9018#discussion_r2536221404


##########
server/src/main/java/org/apache/gravitino/server/web/rest/MetadataObjectTagOperations.java:
##########
@@ -77,11 +92,13 @@ void setHttpRequest(HttpServletRequest httpRequest) {
   @Produces("application/vnd.gravitino.v1+json")
   @Timed(name = "get-object-tag." + MetricNames.HTTP_PROCESS_DURATION, 
absolute = true)
   @ResponseMetered(name = "get-object-tag", absolute = true)
+  @AuthorizationExpression(expression = "CAN_ACCESS_METADATA && ( 
METALAKE::OWNER || TAG::OWNER)")
   public Response getTagForObject(

Review Comment:
   This expression is wrong 
   ```
   METALAKE_OWNER || (CAN_LOAD_OBJECT && CAN_LOAD_TAG)
   ```



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