diff options
author | Corey Hulen <corey@hulen.com> | 2015-10-29 00:13:58 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-10-29 00:13:58 -0700 |
commit | 64b617099db2b25555fe944ef6a0fe64dba2484d (patch) | |
tree | f31b3d2e2a6e987f327577bf609dd02f08a5db11 /api/user.go | |
parent | 8e43a99581ae0cedf48e0756e0846ed74addb965 (diff) | |
parent | 6f599604c995271f9bee4a04722296a317617f9a (diff) | |
download | chat-64b617099db2b25555fe944ef6a0fe64dba2484d.tar.gz chat-64b617099db2b25555fe944ef6a0fe64dba2484d.tar.bz2 chat-64b617099db2b25555fe944ef6a0fe64dba2484d.zip |
Merge pull request #1226 from mattermost/bug-fix
Fixing 200 error bug
Diffstat (limited to 'api/user.go')
-rw-r--r-- | api/user.go | 2 |
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 } |