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


##########
server/src/main/java/org/apache/gravitino/server/web/rest/TableOperations.java:
##########
@@ -200,11 +237,19 @@ public Response alterTable(
   @Produces("application/vnd.gravitino.v1+json")
   @Timed(name = "drop-table." + MetricNames.HTTP_PROCESS_DURATION, absolute = 
true)
   @ResponseMetered(name = "drop-table", absolute = true)
+  @AuthorizationExpression(
+      expression =
+          "ANY(OWNER,METALAKE,CATALOG) ||"
+              + "SCHEMA::OWNER && ANY_USE_CATALOG ||"

Review Comment:
   How about using `SCHEMA_OWNER_WITH_USE_CATALOG` to replace?  But it seems 
not shorter than `CHEMA::OWNER && ANY_USE_CATALOG`😄. 



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

Reply via email to