jerqi commented on code in PR #7726:
URL: https://github.com/apache/gravitino/pull/7726#discussion_r2209447773
##########
server/src/main/java/org/apache/gravitino/server/web/rest/MetalakeOperations.java:
##########
@@ -102,6 +124,9 @@ public Response listMetalakes() {
@Produces("application/vnd.gravitino.v1+json")
@Timed(name = "create-metalake." + MetricNames.HTTP_PROCESS_DURATION,
absolute = true)
@ResponseMetered(name = "create-metalake", absolute = true)
+ @AuthorizationExpression(
+ expression = "SERVICE_ADMIN",
+ errorMessage = "Current user can not create metalake.")
Review Comment:
Maybe we can give more guidance about this error. How about
`Only service admins can create metalakes, current user can't create the
metalake, you should configure it in the server configuration first`
--
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]