hdygxsj commented on code in PR #7554:
URL: https://github.com/apache/gravitino/pull/7554#discussion_r2191790922
##########
server/src/main/java/org/apache/gravitino/server/web/rest/TableOperations.java:
##########
@@ -140,11 +164,21 @@ public Response createTable(
@Produces("application/vnd.gravitino.v1+json")
@Timed(name = "load-table." + MetricNames.HTTP_PROCESS_DURATION, absolute =
true)
@ResponseMetered(name = "load-table", absolute = true)
+ @AuthorizationExpression(
+ expression =
+ "((ANY(USE_CATALOG,METALAKE,CATALOG)) && "
Review Comment:
Expanding the expressions inside the parentheses may make it easier to
understand, but it could lead to OGNL repeatedly evaluating the same
expression. I'm currently working on adding unit tests and exploring whether
it's possible to implement boolean expression optimization.
--
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]