KyleLin0927 commented on code in PR #7580: URL: https://github.com/apache/gravitino/pull/7580#discussion_r2197950347
########## server/src/main/java/org/apache/gravitino/server/web/rest/TopicOperations.java: ########## @@ -195,11 +228,17 @@ public Response alterTopic( @Produces("application/vnd.gravitino.v1+json") @Timed(name = "drop-topic." + MetricNames.HTTP_PROCESS_DURATION, absolute = true) @ResponseMetered(name = "drop-topic", absolute = true) + @AuthorizationExpression( + expression = + "METALAKE::OWNERSHIP || CATALOG::OWNERSHIP || SCHEMA::OWNERSHIP || TOPIC::OWNERSHIP", Review Comment: fixed ########## server/src/main/java/org/apache/gravitino/server/web/rest/TopicOperations.java: ########## @@ -161,11 +188,17 @@ public Response loadTopic( @Produces("application/vnd.gravitino.v1+json") @Timed(name = "alter-topic." + MetricNames.HTTP_PROCESS_DURATION, absolute = true) @ResponseMetered(name = "alter-topic", absolute = true) + @AuthorizationExpression( + expression = + "METALAKE::PRODUCE_TOPIC || CATALOG::PRODUCE_TOPIC || SCHEMA::PRODUCE_TOPIC || TOPIC::PRODUCE_TOPIC || METALAKE::OWNERSHIP || CATALOG::OWNERSHIP || SCHEMA::OWNERSHIP || TOPIC::OWNERSHIP", Review Comment: fixed -- 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: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org