The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Add the sandbox-restricted-fields passthrough to metrics permissions (#78937)
Nemanja Glumac891bb18a1810
diff --git a/src/metabase/metrics/permissions.clj b/src/metabase/metrics/permissions.cljindex 136b1ddebd0..5058c6a1116 100644--- a/src/metabase/metrics/permissions.clj+++ b/src/metabase/metrics/permissions.clj@@ -7,3 +7,9 @@"Remove metric dimensions and mappings unavailable to the current user."[metric](permissions.metric/filter-dimensions-for-user metric))++(defn sandbox-restricted-fields+ "For sandboxed tables, returns {table-id -> #{allowed-field-ids}}. Tables not in the returned map have no column+ restriction; nil means no sandboxes apply."+ [table-ids]+ (permissions.metric/sandbox-restricted-fields table-ids))