jerqi commented on code in PR #7736:
URL: https://github.com/apache/gravitino/pull/7736#discussion_r2219158440
##########
server/src/main/java/org/apache/gravitino/server/web/rest/PermissionOperations.java:
##########
@@ -216,8 +229,10 @@ public Response grantPrivilegeToRole(
@Produces("application/vnd.gravitino.v1+json")
@Timed(name = "revoke-privilege-from-role." +
MetricNames.HTTP_PROCESS_DURATION, absolute = true)
@ResponseMetered(name = "revoke-privilege-from-role", absolute = true)
+ @AuthorizationExpression(expression = "METALAKE::OWNER ||
METALAKE::MANAGE_GRANTS")
Review Comment:
If the user is the owner of the metadata object, he can revoke the privilege
from any role.
--
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]