DEV: Change min_trust_level_to_allow_profile_background to trust level setting (#25721)

New setting name is profile_background_allowed_groups

c.f. https://meta.discourse.org/t/changes-coming-to-settings-for-giving-access-to-features-from-trust-levels-to-groups/283408
This commit is contained in:
Martin Brennan
2024-02-19 10:47:47 +10:00
committed by GitHub
parent 9372404a31
commit a57280cb17
7 changed files with 49 additions and 14 deletions

View File

@ -41,6 +41,12 @@ module SiteSettings::DeprecatedSettings
["min_trust_to_post_links", "post_links_allowed_groups", false, "3.3"],
["min_trust_level_for_user_api_key", "user_api_key_allowed_groups", false, "3.3"],
["min_trust_level_to_tag_topics", "tag_topic_allowed_groups", false, "3.3"],
[
"min_trust_level_to_allow_profile_background",
"profile_background_allowed_groups",
false,
"3.3",
],
]
OVERRIDE_TL_GROUP_SETTINGS = %w[
@ -66,6 +72,7 @@ module SiteSettings::DeprecatedSettings
min_trust_to_post_links
min_trust_level_for_user_api_key
min_trust_level_to_tag_topics
min_trust_level_to_allow_profile_background
]
def group_to_tl(old_setting, new_setting)