From 6f599604c995271f9bee4a04722296a317617f9a Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Thu, 29 Oct 2015 00:00:41 -0700 Subject: Fixing 200 error bug --- api/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/user.go') 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 } -- cgit v1.2.3-1-g7c22