summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-08-31 01:54:16 +0800
committerJoram Wilander <jwawilander@gmail.com>2017-08-30 13:54:16 -0400
commit651dd33b29b7b8b296cc5a12479684fa836867b1 (patch)
tree60d4f385f50ab7f6b8aa75bdb6de2d98508c8784 /api/user.go
parent4c1f4674425ffeb430aa07f3fccbb09837f36a34 (diff)
downloadchat-651dd33b29b7b8b296cc5a12479684fa836867b1.tar.gz
chat-651dd33b29b7b8b296cc5a12479684fa836867b1.tar.bz2
chat-651dd33b29b7b8b296cc5a12479684fa836867b1.zip
set to default value with config is missing (#7320)
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 8843a3730..5ab72032e 100644
--- a/api/user.go
+++ b/api/user.go
@@ -580,7 +580,7 @@ func getProfileImage(c *Context, w http.ResponseWriter, r *http.Request) {
}
func uploadProfileImage(c *Context, w http.ResponseWriter, r *http.Request) {
- if len(utils.Cfg.FileSettings.DriverName) == 0 {
+ if len(*utils.Cfg.FileSettings.DriverName) == 0 {
c.Err = model.NewLocAppError("uploadProfileImage", "api.user.upload_profile_user.storage.app_error", nil, "")
c.Err.StatusCode = http.StatusNotImplemented
return