FIX: Return 503 when in readonly mode.

This commit is contained in:
Guo Xiang Tan 2016-12-07 14:04:42 +08:00
parent 545dfa7191
commit 81d333289e
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)