hdygxsj commented on code in PR #7736:
URL: https://github.com/apache/gravitino/pull/7736#discussion_r2218045465
##########
core/src/main/java/org/apache/gravitino/authorization/GravitinoAuthorizer.java:
##########
@@ -69,6 +69,18 @@ default boolean isServiceAdmin() {
return true;
}
+ /**
+ * Determine whether the user accessing is oneself, or whether the group
being accessed contains
+ * oneself.
+ *
+ * @param type user or group
+ * @param nameIdentifier name of user or group
+ * @return authorization result
+ */
+ default boolean isSelf(Entity.EntityType type, NameIdentifier
nameIdentifier) {
Review Comment:
fixed
--
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]