fix: display user scope for admin users (#1834)

This commit is contained in:
Oleg Lobanov 2022-02-22 10:58:22 +01:00
parent f73518029c
commit 6366cf0b18
No known key found for this signature in database
GPG Key ID: 65FF3DB864FE3D2A

View File

@ -94,7 +94,7 @@ var userGetHandler = withSelfOrAdmin(func(w http.ResponseWriter, r *http.Request
}
u.Password = ""
if !u.Perm.Admin {
if !d.user.Perm.Admin {
u.Scope = ""
}
return renderJSON(w, r, u)