Skip to content
Snippets Groups Projects
Commit 9933ef9f authored by Cam Saul's avatar Cam Saul
Browse files

'org' is a required param for GET /api/query

parent 841f1807
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment