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

validate that a superuser can access other user details via GET /api/user/:id

parent 6608d34a
No related branches found
No related tags found
No related merge requests found
......@@ -105,6 +105,18 @@
(expect "You don't have permissions to do that."
((user->client :rasta) :get 403 (str "user/" (user->id :trashbird))))
;; A superuser should be allowed to fetch another users data
(expect (match-$ (fetch-user :rasta)
{:email "rasta@metabase.com"
:first_name "Rasta"
:last_login $
:is_superuser false
:id $
:last_name "Toucan"
:date_joined $
:common_name "Rasta Toucan"})
((user->client :crowberto) :get 200 (str "user/" (user->id :rasta))))
;; ## PUT /api/user/:id
;; Test that we can edit a User
......
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