diff options
author | Tuomo Ala-Vannesluoma <tuomoav@gmail.com> | 2018-08-21 22:22:11 +0300 |
---|---|---|
committer | Tuomo Ala-Vannesluoma <tuomoav@gmail.com> | 2018-08-21 22:22:11 +0300 |
commit | 036f5bd5f519d54a502ae44e966e6c5dbcefc315 (patch) | |
tree | aa08398d16db8533ba6bddbb28db91ac69b30722 /internal | |
parent | f6edf4e90517c8ba0ffa3190f0b9db537f5f0e1b (diff) |
Make private projects not accessible if auth is not configured
Diffstat (limited to 'internal')
-rw-r--r-- | internal/auth/auth.go | 4 |
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) |