jerqi commented on code in PR #9268:
URL: https://github.com/apache/gravitino/pull/9268#discussion_r2563990502
##########
server-common/src/main/java/org/apache/gravitino/server/authorization/jcasbin/JcasbinAuthorizer.java:
##########
@@ -216,6 +216,12 @@ public boolean isMetalakeUser(String metalake) {
if (StringUtils.isBlank(currentUserName)) {
return false;
}
+
+ // Service admins are considered users of all metalakes
+ if (isServiceAdmin()) {
Review Comment:
Actually, we can remove the check `isMetalakeUser`. Because I have checked
user in the InterceptService. But I think we can do this in next PR.
--
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]