HonahX commented on code in PR #1438:
URL: https://github.com/apache/polaris/pull/1438#discussion_r2060634082
##########
service/common/src/main/java/org/apache/polaris/service/catalog/policy/PolicyCatalogHandler.java:
##########
@@ -72,6 +73,8 @@ public PolicyCatalogHandler(
@Override
protected void initializeCatalog() {
+ FeatureConfiguration.enforceFeatureEnabledOrThrow(
+ callContext, FeatureConfiguration.ENABLE_POLICY_STORE);
Review Comment:
Yes, I think putting this in `PolicyCatalogAdapter::newHandlerWrapper` makes
more sense. This way the request does not need to undergo authorization before
realizing the policy is not supported.
--
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]