mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 19:22:57 +00:00
fix: display user scope for admin users (#1834)
This commit is contained in:
parent
f73518029c
commit
6366cf0b18
@ -94,7 +94,7 @@ var userGetHandler = withSelfOrAdmin(func(w http.ResponseWriter, r *http.Request
|
|||||||
}
|
}
|
||||||
|
|
||||||
u.Password = ""
|
u.Password = ""
|
||||||
if !u.Perm.Admin {
|
if !d.user.Perm.Admin {
|
||||||
u.Scope = ""
|
u.Scope = ""
|
||||||
}
|
}
|
||||||
return renderJSON(w, r, u)
|
return renderJSON(w, r, u)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user