FANNG1 commented on code in PR #7554: URL: https://github.com/apache/gravitino/pull/7554#discussion_r2191696660
########## server/src/main/java/org/apache/gravitino/server/web/rest/TableOperations.java: ########## @@ -99,10 +114,19 @@ public Response listTables( @Produces("application/vnd.gravitino.v1+json") @Timed(name = "create-table." + MetricNames.HTTP_PROCESS_DURATION, absolute = true) @ResponseMetered(name = "create-table", absolute = true) + @AuthorizationExpression( + expression = + " ((ANY(USE_CATALOG,METALAKE,CATALOG)) && " + + "((ANY(USE_SCHEMA,METALAKE,CATALOG,SCHEMA)) " + + "&& (ANY(CREATE_TABLE,METALAKE,CATALOG,SCHEMA)) || SCHEMA::OWNER)) || " Review Comment: why not using `ANY(OWNER,METALAKE,CATALOG,SCHEMA)` to simple the code? -- 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