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-06-17 23:34:04 +0300
committerTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-06-30 22:51:39 +0300
commit301dd4675e9df8ccc8ad47fe7f2c40c03428ddb2 (patch)
tree48d0456715a2cba4acd577d9baa40a39a7a50e6f /internal
parent9cf40354085f4b4446f06d4d03926dcaa6ab9565 (diff)
Fix logic to return failure instead of making private pages public
Diffstat (limited to 'internal')
-rw-r--r--internal/auth/auth.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/auth/auth.go b/internal/auth/auth.go
index d5600d32..d64a4053 100644
--- a/internal/auth/auth.go
+++ b/internal/auth/auth.go
@@ -187,7 +187,8 @@ func (a *Auth) fetchAccessToken(code string) (tokenResponse, error) {
func (a *Auth) CheckAuthentication(w http.ResponseWriter, r *http.Request, projectID int) bool {
if a == nil {
- return false
+ httperrors.Serve500(w)
+ return true
}
if a.checkSession(w, r) {