From ba5c12974afc3df40b7eed930ab16b63409d5f1a Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 20 Jun 2023 18:32:14 +0200 Subject: [PATCH] Fix missing validation on `default_privacy` setting (#25513) --- app/models/user_settings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user_settings.rb b/app/models/user_settings.rb index 0f77f45f78..71af7aaeb0 100644 --- a/app/models/user_settings.rb +++ b/app/models/user_settings.rb @@ -14,7 +14,7 @@ class UserSettings setting :show_application, default: true setting :default_language, default: nil setting :default_sensitive, default: false - setting :default_privacy, default: nil + setting :default_privacy, default: nil, in: %w(public unlisted private) namespace :web do setting :crop_images, default: true