summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go
index c9958767f..732c6b9a8 100644
--- a/api/user.go
+++ b/api/user.go
@@ -653,7 +653,7 @@ func getProfiles(c *Context, w http.ResponseWriter, r *http.Request) {
options := utils.SanitizeOptions
options["passwordupdate"] = false
- if c.HasSystemAdminPermissions("getProfiles") {
+ if c.IsSystemAdmin() {
options["fullname"] = true
options["email"] = true
}