diff options
author | =Corey Hulen <corey@hulen.com> | 2015-10-27 22:55:10 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-10-27 22:55:10 -0700 |
commit | 36308f949d434675eca31b8eb1cd04c863273c93 (patch) | |
tree | 491a82b90181a5254ad763fd003906ab8f82bf13 /api | |
parent | 570b54bbfc0151724aa10f61ca0beb4d38351cb9 (diff) | |
download | chat-36308f949d434675eca31b8eb1cd04c863273c93.tar.gz chat-36308f949d434675eca31b8eb1cd04c863273c93.tar.bz2 chat-36308f949d434675eca31b8eb1cd04c863273c93.zip |
PLT-25 fixing issues with stats page
Diffstat (limited to 'api')
-rw-r--r-- | api/user.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/api/user.go b/api/user.go index 3796a50ee..c9958767f 100644 --- a/api/user.go +++ b/api/user.go @@ -652,6 +652,12 @@ func getProfiles(c *Context, w http.ResponseWriter, r *http.Request) { for k, p := range profiles { options := utils.SanitizeOptions options["passwordupdate"] = false + + if c.HasSystemAdminPermissions("getProfiles") { + options["fullname"] = true + options["email"] = true + } + p.Sanitize(options) profiles[k] = p } |