summaryrefslogtreecommitdiff
path: root/app/models/application_setting.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-12 21:18:30 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-12 21:18:30 +0000
commitac48f7c24110a7a1e0a0aa49fc7838ab03c28374 (patch)
tree0d323ff3b3317315241fd1c784d82bfa0577711e /app/models/application_setting.rb
parent6ce6d20cf0b81275bad7bf8e95cf49bd475c5c4f (diff)
downloadgitlab-ce-ac48f7c24110a7a1e0a0aa49fc7838ab03c28374.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/application_setting.rb')
-rw-r--r--app/models/application_setting.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/application_setting.rb b/app/models/application_setting.rb
index 9aab1d96083..c11cd0191df 100644
--- a/app/models/application_setting.rb
+++ b/app/models/application_setting.rb
@@ -439,6 +439,9 @@ class ApplicationSetting < MainClusterwide::ApplicationRecord
allow_nil: false,
inclusion: { in: [true, false], message: N_('must be a boolean value') }
+ validates :silent_mode_enabled,
+ inclusion: { in: [true, false], message: N_('must be a boolean value') }
+
Gitlab::SSHPublicKey.supported_types.each do |type|
validates :"#{type}_key_restriction", presence: true, key_restriction: { type: type }
end