diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-10-28 08:34:57 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-10-28 08:34:57 -0400 |
commit | c6f3361d3caf671ca64b798d5ac9eca97c387f9e (patch) | |
tree | 1fb5df9955402edcb6f01f26ef9a0b11491c7aef /api/user.go | |
parent | 53221120454e1111f0f73f90ec5b9ecf5b4d2303 (diff) | |
parent | 36308f949d434675eca31b8eb1cd04c863273c93 (diff) | |
download | chat-c6f3361d3caf671ca64b798d5ac9eca97c387f9e.tar.gz chat-c6f3361d3caf671ca64b798d5ac9eca97c387f9e.tar.bz2 chat-c6f3361d3caf671ca64b798d5ac9eca97c387f9e.zip |
Merge pull request #1210 from mattermost/PLT-25
PLT-25 fixing issues with stats page
Diffstat (limited to 'api/user.go')
-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 } |