diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-08-29 13:15:19 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-08-31 10:27:42 +0300 |
commit | 04cd47dd5a08ca5cc84c44346b2893111da9594c (patch) | |
tree | 08876d2156c4538b9a028b0b0d02a45c1783f185 /app/controllers/projects/application_controller.rb | |
parent | 9e7e0496ff639d1eec65dcbf1b51edb2262456e2 (diff) |
Don't show references to Pages when not available
In this instance its subgroups, and given we can't deploy it, we
shouldn't allow it to be shown.
Fixes gitlab-org/gitlab-ce#34864
Diffstat (limited to 'app/controllers/projects/application_controller.rb')
-rw-r--r-- | app/controllers/projects/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/application_controller.rb b/app/controllers/projects/application_controller.rb index 221e01b415a..d7dd8ddcb7d 100644 --- a/app/controllers/projects/application_controller.rb +++ b/app/controllers/projects/application_controller.rb @@ -94,6 +94,6 @@ class Projects::ApplicationController < ApplicationController end def require_pages_enabled! - not_found unless Gitlab.config.pages.enabled + not_found unless @project.pages_available? end end |