Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-08-21 22:22:11 +0300
committerTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-08-21 22:22:11 +0300
commit036f5bd5f519d54a502ae44e966e6c5dbcefc315 (patch)
treeaa08398d16db8533ba6bddbb28db91ac69b30722 /internal/auth
parentf6edf4e90517c8ba0ffa3190f0b9db537f5f0e1b (diff)
Make private projects not accessible if auth is not configured
Diffstat (limited to 'internal/auth')
-rw-r--r--internal/auth/auth.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/auth/auth.go b/internal/auth/auth.go
index f8524405..8b0396d4 100644
--- a/internal/auth/auth.go
+++ b/internal/auth/auth.go
@@ -427,7 +427,9 @@ func (a *Auth) CheckAuthenticationWithoutProject(w http.ResponseWriter, r *http.
func (a *Auth) CheckAuthentication(w http.ResponseWriter, r *http.Request, projectID uint64) bool {
if a == nil {
- return false
+ log.Debug("Authentication is not configured")
+ httperrors.Serve500(w)
+ return true
}
session, err := a.checkSession(w, r)