Skip to content
Snippets Groups Projects
Commit bc91aa88 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

permissions check on user listing endpoint.

parent 67f94500
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,9 @@
(defendpoint GET "/" []
;; TODO - permissions check
(sel :many User :is_active true))
; user must be a superuser to proceed
(check-403 (:is_superuser @*current-user*))
(sel :many User))
(defendpoint GET "/current" []
......
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