Liking cljdoc? Tell your friends :D

metabase.models.query.permissions

Functions used to calculate the permissions needed to run a query based on old-style DATA ACCESS PERMISSIONS. The only thing that is subject to these sorts of checks are ad-hoc queries, i.e. queries that have not yet been saved as a Card. Saved Cards are subject to the permissions of the Collection to which they belong.

Functions used to calculate the permissions needed to run a query based on old-style DATA ACCESS PERMISSIONS. The
only thing that is subject to these sorts of checks are *ad-hoc* queries, i.e. queries that have not yet been saved
as a Card. Saved Cards are subject to the permissions of the Collection to which they belong.
raw docstring

can-run-query?clj

(can-run-query? query)

Inputs: [query]

Return true if the current-user has sufficient permissions to run query.

Inputs: [query]

Return `true` if the current-user has sufficient permissions to run `query`.
sourceraw docstring

perms-setclj

(perms-set query & {:keys [throw-exceptions? already-preprocessed?]})

Calculate the set of permissions required to run an ad-hoc query. Returns permissions for full table access. Options default to false.

Calculate the set of permissions required to run an ad-hoc `query`. Returns permissions for full table access.
Options default to `false`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close