Revert "check for `read_only?` first before seeing if request is disallowed"

This reverts commit 91075c8237.
This commit is contained in:
digitalMoksha 2017-11-21 15:35:30 +01:00
parent 91075c8237
commit aeb2f49fd4
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ module Gitlab
@env = env
@route_hash = nil
if Gitlab::Database.read_only? && disallowed_request?
if disallowed_request? && Gitlab::Database.read_only?
Rails.logger.debug('GitLab ReadOnly: preventing possible non read-only operation')
error_message = 'You cannot do writing operations on a read-only GitLab instance'