SAML Session Enforcement breaks Git HTTP access
Problem
Git HTTP access does not work when SSO Enforcement is enabled and we are requiring an active SAML session.
Git SSH access is unaffected.
Cause
Before we implement Git access enforcement in https://gitlab.com/gitlab-org/gitlab-ee/issues/9152 we intended to always allow Git access to succeed. To do this we added a check to see if a session was present, and while this is not the case when hitting API::Internal#allowed
over SSH it is set from Projects::GitHttpController
for HTTP access.