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>2020-01-14 21:08:31 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-14 21:08:31 +0300
commit92f95ccac81911d1fcc32e999a7f1ce04624a56c (patch)
treead207e86b7858ae93a085fbdc04155f5cd469620 /lib/gitlab/pages.rb
parent85e494935a8726dc98bb19ffa584488420e5011e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/pages.rb')
-rw-r--r--lib/gitlab/pages.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab/pages.rb b/lib/gitlab/pages.rb
index 7703b086341..c8cb8b6e020 100644
--- a/lib/gitlab/pages.rb
+++ b/lib/gitlab/pages.rb
@@ -18,6 +18,11 @@ module Gitlab
def secret_path
Gitlab.config.pages.secret_file
end
+
+ def access_control_is_forced?
+ ::Gitlab.config.pages.access_control &&
+ ::Gitlab::CurrentSettings.current_application_settings.force_pages_access_control
+ end
end
end
end