From 49481caf6db89b0853626ac52ab5f786a6887179 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Thu, 4 May 2017 15:45:19 -0400 Subject: PLT-6262 Add config setting to disable file attachments (#6301) * Add config setting to disable file attachments * Add unit tests * Updating UI for no attachments (#6312) * Update UI text on file upload System Console setting (#6313) * Update storage_settings.jsx * Update en.json --- app/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/file.go') diff --git a/app/file.go b/app/file.go index c5e2982d4..ad58de623 100644 --- a/app/file.go +++ b/app/file.go @@ -84,7 +84,7 @@ func ReadFile(path string) ([]byte, *model.AppError) { return f, nil } } else { - return nil, model.NewLocAppError("ReadFile", "api.file.read_file.configured.app_error", nil, "") + return nil, model.NewAppError("ReadFile", "api.file.read_file.configured.app_error", nil, "", http.StatusNotImplemented) } } -- cgit v1.2.3-1-g7c22