Allow users to run ad-hoc query starting with Card if they have perms for it (#12505)
* Allow users to run ad-hoc query starting with Card if they have perms for it * Convert metabase.query-processor.middleware.fetch-source-query-test to modern style * When resolving source query from card_id, use Card ID for perms * Add test to make sure we don't overwrite existing card-id * Add missing require * Test fix* Sort namespaces * Tweak codecov.yaml
Showing
- codecov.yml 7 additions, 2 deletionscodecov.yml
- src/metabase/query_processor.clj 3 additions, 8 deletionssrc/metabase/query_processor.clj
- src/metabase/query_processor/middleware/fetch_source_query.clj 21 additions, 3 deletions...etabase/query_processor/middleware/fetch_source_query.clj
- test/metabase/query_processor/middleware/fetch_source_query_test.clj 199 additions, 217 deletions...se/query_processor/middleware/fetch_source_query_test.clj
- test/metabase/query_processor/middleware/permissions_test.clj 73 additions, 22 deletions.../metabase/query_processor/middleware/permissions_test.clj
- test/metabase/query_processor_test/nested_queries_test.clj 473 additions, 454 deletionstest/metabase/query_processor_test/nested_queries_test.clj
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment