Merge pull request #4591 from tgxworld/return_403

FIX: Return 403 when in reaodnly mode.
This commit is contained in:
Guo Xiang Tan 2016-12-07 07:05:44 +01:00 committed by GitHub
commit 263b25ba8c
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class ApplicationController < ActionController::Base
end
rescue_from Discourse::ReadOnly do
render_json_error I18n.t('read_only_mode_enabled'), type: :read_only, status: 405
render_json_error I18n.t('read_only_mode_enabled'), type: :read_only, status: 503
end
def rescue_discourse_actions(type, status_code, include_ember=false)