Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-05 06:08:14 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-05 06:08:14 +0300
commitfdb5a6d73c634c2545cd2cb70cdc0a3b1458c712 (patch)
tree53443e41b232b4aa7ec000e265df5dd2152b94cf /lib/api/helpers.rb
parentf11cce04caba6363b1e8d33989e5671819d1d502 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index db08bc6c63a..56b157f662a 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -412,7 +412,7 @@ module API
end
def require_pages_enabled!
- not_found! unless user_project.pages_available?
+ not_found! unless ::Gitlab::Pages.enabled?
end
def require_pages_config_enabled!