jerqi commented on code in PR #7736:
URL: https://github.com/apache/gravitino/pull/7736#discussion_r2219144310
##########
server/src/main/java/org/apache/gravitino/server/web/rest/UserOperations.java:
##########
@@ -67,7 +76,11 @@ public UserOperations() {
@Produces("application/vnd.gravitino.v1+json")
@Timed(name = "get-user." + MetricNames.HTTP_PROCESS_DURATION, absolute =
true)
@ResponseMetered(name = "get-user", absolute = true)
- public Response getUser(@PathParam("metalake") String metalake,
@PathParam("user") String user) {
+ @AuthorizationExpression(expression = "METALAKE::OWNER || USER::SELF")
Review Comment:
MANAGE_USERS can get the user, too.
--
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]