diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-05 15:08:19 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-05 15:08:19 +0300 |
commit | 12b995e0e7aace4b7695c4424aed71b053c2c2a6 (patch) | |
tree | 0f2c9a902693aa5b7c9265c3ed24e842eedb6a96 /app/models/namespace.rb | |
parent | 1e02d1c756e1b5e79453fcc805c9737bb6520fca (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r-- | app/models/namespace.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb index d6df73f1c0e..5ee4fbedd5f 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -131,6 +131,8 @@ class Namespace < ApplicationRecord to: :namespace_settings, allow_nil: true delegate :show_diff_preview_in_email, :show_diff_preview_in_email?, :show_diff_preview_in_email=, to: :namespace_settings + delegate :runner_registration_enabled, :runner_registration_enabled?, :runner_registration_enabled=, + to: :namespace_settings delegate :maven_package_requests_forwarding, :pypi_package_requests_forwarding, :npm_package_requests_forwarding, @@ -606,6 +608,10 @@ class Namespace < ApplicationRecord namespace_settings&.enabled_git_access_protocol end + def all_ancestors_have_runner_registration_enabled? + namespace_settings&.all_ancestors_have_runner_registration_enabled? + end + private def cluster_enabled_granted? |