diff --git a/src/metabase/actions.clj b/src/metabase/actions.clj index e16e185e102f40c2d64a9f3a41a6100a80512e9a..ded6241a4f38e9b79d4643c4c08c78ad57d85694 100644 --- a/src/metabase/actions.clj +++ b/src/metabase/actions.clj @@ -183,7 +183,7 @@ ;; TODO -- need to check permissions once we have Actions-specific perms in place. For now just make sure the ;; current User is an admin. This check is only done if [[api/*current-user*]] is bound (which will always be ;; the case when invoked from an API endpoint) to make Actions testable separately from the API endpoints. - (when api/*current-user* + (when @api/*current-user* (api/check-superuser)) ;; Ok, now we can hand off to [[perform-action!*]] (perform-action!* driver action db arg-map)))))