From 718637f88ce9933f581c58e27dfffc389cbb6111 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 13 Oct 2023 18:11:49 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/models/application_setting.rb | 3 +++ app/models/application_setting_implementation.rb | 1 + app/models/user_custom_attribute.rb | 1 + 3 files changed, 5 insertions(+) (limited to 'app/models') diff --git a/app/models/application_setting.rb b/app/models/application_setting.rb index 14b5973b8b5..824a2bd9fa4 100644 --- a/app/models/application_setting.rb +++ b/app/models/application_setting.rb @@ -838,6 +838,9 @@ class ApplicationSetting < MainClusterwide::ApplicationRecord allow_nil: false, inclusion: { in: [true, false], message: N_('must be a boolean value') } + validates :math_rendering_limits_enabled, + inclusion: { in: [true, false], message: N_('must be a boolean value') } + before_validation :ensure_uuid! before_validation :coerce_repository_storages_weighted, if: :repository_storages_weighted_changed? before_validation :normalize_default_branch_name diff --git a/app/models/application_setting_implementation.rb b/app/models/application_setting_implementation.rb index 06d4aab8b8e..1bd15a56de5 100644 --- a/app/models/application_setting_implementation.rb +++ b/app/models/application_setting_implementation.rb @@ -119,6 +119,7 @@ module ApplicationSettingImplementation login_recaptcha_protection_enabled: false, mailgun_signing_key: nil, mailgun_events_enabled: false, + math_rendering_limits_enabled: true, max_artifacts_size: Settings.artifacts['max_size'], max_attachment_size: Settings.gitlab['max_attachment_size'], max_decompressed_archive_size: 25600, diff --git a/app/models/user_custom_attribute.rb b/app/models/user_custom_attribute.rb index b2674cb4e88..728c1f4844a 100644 --- a/app/models/user_custom_attribute.rb +++ b/app/models/user_custom_attribute.rb @@ -18,6 +18,7 @@ class UserCustomAttribute < ApplicationRecord AUTO_BANNED_BY_ABUSE_REPORT_ID = 'auto_banned_by_abuse_report_id' AUTO_BANNED_BY_SPAM_LOG_ID = 'auto_banned_by_spam_log_id' TRUSTED_BY = 'trusted_by' + AUTO_BANNED_BY = 'auto_banned_by' IDENTITY_VERIFICATION_PHONE_EXEMPT = 'identity_verification_phone_exempt' class << self -- cgit v1.2.3