fix: display user scope for admin users (#1834)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user