jerqi commented on code in PR #6211: URL: https://github.com/apache/gravitino/pull/6211#discussion_r2016500068
########## authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerAuthorizationHDFSPlugin.java: ########## @@ -499,27 +506,32 @@ public List<AuthorizationSecurableObject> translatePrivilege(SecurableObject sec case CREATE_SCHEMA: switch (securableObject.type()) { case METALAKE: + NameIdentifier[] catalogs = + GravitinoEnv.getInstance() + .catalogDispatcher() + .listCatalogs(Namespace.of(identifier.name())); + for (NameIdentifier catalog : catalogs) { + AuthorizationUtils.getMetadataObjectLocation( + catalog, Entity.EntityType.CATALOG) + .forEach( + locationPath -> + createPathBasedMetadataObject( + securableObject, + locationPath, + rangerSecurableObjects, + rangerPrivileges)); + } + break; Review Comment: OK. -- 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: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org