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>2023-06-29 06:09:44 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-06-29 06:09:44 +0300
commit111f9a7cc6834edfeb81c4b91bcf43df332096a7 (patch)
tree76db22a425042d59c08d7bcecaed160cfdef885a /app/models/organizations
parent72278d5e10d7470b59b81c1e51379baa3a6cdab8 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/organizations')
-rw-r--r--app/models/organizations/organization_setting.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/organizations/organization_setting.rb b/app/models/organizations/organization_setting.rb
index 5a5ace0cc06..108531e6701 100644
--- a/app/models/organizations/organization_setting.rb
+++ b/app/models/organizations/organization_setting.rb
@@ -4,6 +4,8 @@ module Organizations
class OrganizationSetting < ApplicationRecord
belongs_to :organization
+ validates :settings, json_schema: { filename: "organization_settings" }
+
jsonb_accessor :settings,
restricted_visibility_levels: [:integer, { array: true }]