summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlessio Caiazza <acaiazza@gitlab.com>2018-12-03 12:05:38 +0100
committerAlessio Caiazza <acaiazza@gitlab.com>2019-01-14 10:14:50 +0000
commit5e5419db3c141c468dd4eeb81181cad457f7d18c (patch)
tree52defd31e7c55dd3e3875018ca242c7276b51c4d /app
parent94d05e3c5ce59448d63ee96e3474b0cd3ef2c995 (diff)
downloadgitlab-ce-5e5419db3c141c468dd4eeb81181cad457f7d18c.tar.gz
Enable Gitlab-Pages for subgroups
GitLab Pages supports projects hosted under a subgroup, but not subgroup websites. That means that only the highest-level group supports i.e.: You created a group for your engineering department called `engineering`, a subgroup for all your documentation websites called `docs`,and a project within this subgroup is called `workflows`. Your project URL is `https://gitlab.com/engineering/docs/workflows/`. Once you enable GitLab Pages for this project, the site will live under `https://engineering.gitlab.io/docs/workflows`.
Diffstat (limited to 'app')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 7ab2fc30c24..0c480d9ddd4 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -1531,7 +1531,7 @@ class Project < ActiveRecord::Base
end
def pages_available?
- Gitlab.config.pages.enabled && !namespace.subgroup?
+ Gitlab.config.pages.enabled
end
def remove_private_deploy_keys