From 9933ef9f99fbcf66f1d84c9c761707fa145fbfff Mon Sep 17 00:00:00 2001
From: Cam Saul <cam@geotip.com>
Date: Mon, 9 Mar 2015 22:21:09 -0700
Subject: [PATCH] 'org' is a required param for GET /api/query

---
 src/metabase/api/query.clj | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/metabase/api/query.clj b/src/metabase/api/query.clj
index 718c0c605c4..7ad4a80e128 100644
--- a/src/metabase/api/query.clj
+++ b/src/metabase/api/query.clj
@@ -24,6 +24,7 @@
 
 
 (defendpoint GET "/" [org f]
+  (require-params org)
   (check-403 ((:perms-for-org @*current-user*) org))
   (-> (case (or (keyword f) :all) ; default value for `f` is `:all`
         :all (sel :many Query
-- 
GitLab