summaryrefslogtreecommitdiff
path: root/lib/gitlab/middleware
diff options
context:
space:
mode:
authorJoe Marty <jmarty@iexposure.com>2017-11-07 11:42:25 -0600
committerJoe Marty <jmarty@iexposure.com>2017-11-07 11:42:25 -0600
commit4dea7944c46287707b6b65ca10e0af0b69a57a21 (patch)
treeba3e4b227d6996b71919e980e9f327cc5cae1642 /lib/gitlab/middleware
parentdfeb60daa607dd96be689cfd3b2f929138efacdf (diff)
downloadgitlab-ce-4dea7944c46287707b6b65ca10e0af0b69a57a21.tar.gz
Updates tests to reflect sign_out route change
- Also remove sign_out DELETE route from read-only whitelist routes
Diffstat (limited to 'lib/gitlab/middleware')
-rw-r--r--lib/gitlab/middleware/read_only.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/middleware/read_only.rb b/lib/gitlab/middleware/read_only.rb
index 8853dfa3d2d..5e4932e4e57 100644
--- a/lib/gitlab/middleware/read_only.rb
+++ b/lib/gitlab/middleware/read_only.rb
@@ -66,11 +66,7 @@ module Gitlab
end
def whitelisted_routes
- logout_route || grack_route || @whitelisted.any? { |path| request.path.include?(path) } || lfs_route || sidekiq_route
- end
-
- def logout_route
- route_hash[:controller] == 'sessions' && route_hash[:action] == 'destroy'
+ grack_route || @whitelisted.any? { |path| request.path.include?(path) } || lfs_route || sidekiq_route
end
def sidekiq_route