summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2019-06-04 16:33:45 +0100
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2019-06-05 19:07:20 +0100
commitc7d9d462ec5b6012cd795d3e3034dbcca531de42 (patch)
tree3d61ae3b4a373ca3e560e6a1e3205c50f72b7308
parent866f544c3e29c66ab47ddd9266898cb64d615967 (diff)
downloadgitlab-ce-ce-jej/fix-git-http-with-sso-enforcement.tar.gz
Avoid setting Gitlab::Session on Git HTTP requestsce-jej/fix-git-http-with-sso-enforcement
-rw-r--r--app/controllers/projects/git_http_client_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/projects/git_http_client_controller.rb b/app/controllers/projects/git_http_client_controller.rb
index 7a80da53025..956093b972b 100644
--- a/app/controllers/projects/git_http_client_controller.rb
+++ b/app/controllers/projects/git_http_client_controller.rb
@@ -15,6 +15,7 @@ class Projects::GitHttpClientController < Projects::ApplicationController
alias_method :authenticated_user, :actor
# Git clients will not know what authenticity token to send along
+ skip_around_action :set_session_storage
skip_before_action :verify_authenticity_token
skip_before_action :repository
before_action :authenticate_user