diff options
author | Joe Marty <jmarty@iexposure.com> | 2017-11-07 11:42:25 -0600 |
---|---|---|
committer | Joe Marty <jmarty@iexposure.com> | 2017-11-07 11:42:25 -0600 |
commit | 4dea7944c46287707b6b65ca10e0af0b69a57a21 (patch) | |
tree | ba3e4b227d6996b71919e980e9f327cc5cae1642 /lib | |
parent | dfeb60daa607dd96be689cfd3b2f929138efacdf (diff) | |
download | gitlab-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')
-rw-r--r-- | lib/gitlab/middleware/read_only.rb | 6 |
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 |