DEV: Convert min_trust_level_to_allow_user_card_background to groups (#24891)

We're changing the implementation of trust levels to use groups. Part of this is to have site settings that reference trust levels use groups instead. It converts the min_trust_level_to_allow_user_card_background site setting to user_card_background_allowed_groups.

Nothing of note here. This is used in exactly one place, and there's no fallout.
This commit is contained in:
Ted Johansson
2023-12-14 10:57:58 +08:00
committed by GitHub
parent f029d8142b
commit 53d40672a7
7 changed files with 49 additions and 10 deletions

View File

@ -25,6 +25,12 @@ module SiteSettings::DeprecatedSettings
["min_trust_to_edit_post", "edit_post_allowed_groups", false, "3.3"],
["min_trust_to_flag_posts", "flag_post_allowed_groups", false, "3.3"],
["tl4_delete_posts_and_topics", "delete_all_posts_and_topics_allowed_groups", false, "3.3"],
[
"min_trust_level_to_allow_user_card_background",
"user_card_background_allowed_groups",
false,
"3.3",
],
]
def setup_deprecated_methods