Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
aeb2f49f
Commit
aeb2f49f
authored
Nov 21, 2017
by
digitalMoksha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "check for `read_only?` first before seeing if request is disallowed"
This reverts commit
91075c82
.
parent
91075c82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib/gitlab/middleware/read_only.rb
lib/gitlab/middleware/read_only.rb
+1
-1
No files found.
lib/gitlab/middleware/read_only.rb
View file @
aeb2f49f
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment