-
- Downloads
Mechanism for internal use of premium features (#32240)
Some premium features (and in theory even non-premium EE features) use parts of others, and the token might not have those other features enabled. This mechanism allows dynamically overriding the set of features the token is considered to have, enabling eg. `:audit-app` code to use `:serialization` internally even if the user's token doesn't support `:serialization`. ```clojure (premium-features/with-premium-feature-overiddes [:foo :bar] (has-feature? :foo)) ;=> true ```
Showing
- enterprise/backend/src/metabase_enterprise/audit_db.clj 4 additions, 2 deletionsenterprise/backend/src/metabase_enterprise/audit_db.clj
- src/metabase/public_settings/premium_features.clj 20 additions, 1 deletionsrc/metabase/public_settings/premium_features.clj
- test/metabase/public_settings/premium_features_test.clj 20 additions, 0 deletionstest/metabase/public_settings/premium_features_test.clj
Please register or sign in to comment