diff options
Diffstat (limited to 'app/services/projects/update_service.rb')
-rw-r--r-- | app/services/projects/update_service.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/projects/update_service.rb b/app/services/projects/update_service.rb index bea994e8bb2..7f25ab5883f 100644 --- a/app/services/projects/update_service.rb +++ b/app/services/projects/update_service.rb @@ -51,7 +51,7 @@ module Projects private def add_pages_unique_domain - if Feature.disabled?(:pages_unique_domain) + if Feature.disabled?(:pages_unique_domain, project) params[:project_setting_attributes]&.delete(:pages_unique_domain_enabled) return @@ -120,6 +120,8 @@ module Projects def remove_unallowed_params params.delete(:emails_disabled) unless can?(current_user, :set_emails_disabled, project) + + params.delete(:runner_registration_enabled) if Gitlab::CurrentSettings.valid_runner_registrars.exclude?('project') end def after_update |