roryqi commented on code in PR #12482:
URL: https://github.com/apache/gravitino/pull/12482#discussion_r3819849686
##########
server/src/main/java/org/apache/gravitino/server/web/rest/TableOperations.java:
##########
@@ -82,7 +82,7 @@ public TableOperations(TableDispatcher dispatcher) {
@Timed(name = "list-table." + MetricNames.HTTP_PROCESS_DURATION, absolute =
true)
@ResponseMetered(name = "list-table", absolute = true)
@AuthorizationExpression(
- expression =
AuthorizationExpressionConstants.LOAD_SCHEMA_AUTHORIZATION_EXPRESSION,
+ expression =
AuthorizationExpressionConstants.PROBE_TABLE_LIKE_AUTHORIZATION_EXPRESSION,
Review Comment:
You don't modify here. You should change 100 line expression.
```
MetadataAuthzHelper.filterByExpression(
metalake,
AuthorizationExpressionConstants.FILTER_TABLE_AUTHORIZATION_EXPRESSION,
Entity.EntityType.TABLE,
idents);
```
##########
server/src/main/java/org/apache/gravitino/server/web/rest/TableOperations.java:
##########
@@ -82,7 +82,7 @@ public TableOperations(TableDispatcher dispatcher) {
@Timed(name = "list-table." + MetricNames.HTTP_PROCESS_DURATION, absolute =
true)
@ResponseMetered(name = "list-table", absolute = true)
@AuthorizationExpression(
- expression =
AuthorizationExpressionConstants.LOAD_SCHEMA_AUTHORIZATION_EXPRESSION,
+ expression =
AuthorizationExpressionConstants.PROBE_TABLE_LIKE_AUTHORIZATION_EXPRESSION,
Review Comment:
You shouldn't modify here. You should change 100 line expression.
```
MetadataAuthzHelper.filterByExpression(
metalake,
AuthorizationExpressionConstants.FILTER_TABLE_AUTHORIZATION_EXPRESSION,
Entity.EntityType.TABLE,
idents);
```
--
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]