Commit aeb2f49f authored by Brett Walker's avatar Brett Walker

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

This reverts commit 91075c82.
parent 91075c82
Pipeline #14199070 passed with stages
in 88 minutes and 33 seconds
......@@ -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'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment