hdygxsj commented on code in PR #7425:
URL: https://github.com/apache/gravitino/pull/7425#discussion_r2168193195
##########
server-common/src/main/java/org/apache/gravitino/server/authorization/jcasbin/JcasbinAuthorizer.java:
##########
@@ -98,6 +98,26 @@ public void handleRolePrivilegeChange(Long roleId) {
enforcer.deleteRole(String.valueOf(roleId));
}
+ @Override
+ public void handleMetadataOwnerChange(
+ String metalake, Long oldOwnerId, NameIdentifier nameIdentifier,
Entity.EntityType type) {
+ MetadataObject metadataObject =
NameIdentifierUtil.toMetadataObject(nameIdentifier, type);
+ Long metadataId = null;
+ try {
+ metadataId = MetadataIdConverter.getID(metadataObject, metalake);
+ } catch (IOException e) {
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]