Revert "check for `read_only?` first before seeing if request is disallowed"
This reverts commit 91075c8237
.
This commit is contained in:
parent
91075c8237
commit
aeb2f49fd4
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue