@@ -518,10 +518,8 @@ private PolarisResolutionManifest authorizeGrantOnTableLikeOperationOrThrow(
518518 resolutionManifest .getResolvedPath (
519519 identifier , PolarisEntityType .TABLE_LIKE , PolarisEntitySubType .ANY_SUBTYPE , true );
520520 boolean rbacForFederatedCatalogsEnabled =
521- getCurrentPolarisContext ()
522- .getRealmConfig ()
523- .getConfig (
524- FeatureConfiguration .ENABLE_SUB_CATALOG_RBAC_FOR_FEDERATED_CATALOGS , catalogEntity );
521+ realmConfig .getConfig (
522+ FeatureConfiguration .ENABLE_SUB_CATALOG_RBAC_FOR_FEDERATED_CATALOGS , catalogEntity );
525523 if (!(resolutionManifest .getIsPassthroughFacade () && rbacForFederatedCatalogsEnabled )
526524 && !subTypes .contains (tableLikeWrapper .getRawLeafEntity ().getSubType ())) {
527525 CatalogHandler .throwNotFoundExceptionForTableLikeEntity (identifier , subTypes );
@@ -1698,11 +1696,8 @@ public PrivilegeResult grantPrivilegeOnNamespaceToRole(
16981696 if (resolvedPathWrapper == null
16991697 || !resolvedPathWrapper .isFullyResolvedNamespace (catalogName , namespace )) {
17001698 boolean rbacForFederatedCatalogsEnabled =
1701- getCurrentPolarisContext ()
1702- .getRealmConfig ()
1703- .getConfig (
1704- FeatureConfiguration .ENABLE_SUB_CATALOG_RBAC_FOR_FEDERATED_CATALOGS ,
1705- catalogEntity );
1699+ realmConfig .getConfig (
1700+ FeatureConfiguration .ENABLE_SUB_CATALOG_RBAC_FOR_FEDERATED_CATALOGS , catalogEntity );
17061701 if (resolutionManifest .getIsPassthroughFacade () && rbacForFederatedCatalogsEnabled ) {
17071702 resolvedPathWrapper =
17081703 createSyntheticNamespaceEntities (
@@ -2140,11 +2135,8 @@ private PrivilegeResult grantPrivilegeOnTableLikeToRole(
21402135 if (resolvedPathWrapper == null
21412136 || !subTypes .contains (resolvedPathWrapper .getRawLeafEntity ().getSubType ())) {
21422137 boolean rbacForFederatedCatalogsEnabled =
2143- getCurrentPolarisContext ()
2144- .getRealmConfig ()
2145- .getConfig (
2146- FeatureConfiguration .ENABLE_SUB_CATALOG_RBAC_FOR_FEDERATED_CATALOGS ,
2147- catalogEntity );
2138+ realmConfig .getConfig (
2139+ FeatureConfiguration .ENABLE_SUB_CATALOG_RBAC_FOR_FEDERATED_CATALOGS , catalogEntity );
21482140 if (resolutionManifest .getIsPassthroughFacade () && rbacForFederatedCatalogsEnabled ) {
21492141 resolvedPathWrapper =
21502142 createSyntheticTableLikeEntities (
0 commit comments