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
path: root/app.go
diff options
context:
space:
mode:
authorTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-06-30 22:31:06 +0300
committerTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-06-30 22:51:43 +0300
commit9681f91e84e78035f48f85c320ae1a3aa4b6ee07 (patch)
treecddf5e01cb656e219cf1e13458e5b02434bca8ec /app.go
parenta57640fd330cc854b0d48a3b685dd61bec9cf57d (diff)
Combine private boolean with the access_control flag
Diffstat (limited to 'app.go')
-rw-r--r--app.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/app.go b/app.go
index af4d5744..59672589 100644
--- a/app.go
+++ b/app.go
@@ -172,8 +172,8 @@ func (a *theApp) serveContent(ww http.ResponseWriter, r *http.Request, https boo
return
}
- // Only for private domains that have access control enabled
- if domain.IsAccessControlEnabled(r) && domain.IsPrivate(r) {
+ // Only for projects that have access control enabled
+ if domain.IsAccessControlEnabled(r) {
if a.Auth.CheckAuthentication(&w, r, domain.GetID(r)) {
return
}