DEV: Convert min_trust_to_flag_posts setting to groups (#24864)

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_to_flag_posts site setting to flag_post_allowed_groups.

Note: In the original setting, "posts" is plural. I have changed this to "post" singular in the new setting to match others.
This commit is contained in:
Ted Johansson
2023-12-13 17:18:42 +08:00
committed by GitHub
parent 36057638ca
commit 294febf3c4
37 changed files with 151 additions and 84 deletions

View File

@ -23,6 +23,7 @@ module SiteSettings::DeprecatedSettings
["allow_uploaded_avatars", "uploaded_avatars_allowed_groups", false, "3.3"],
["min_trust_to_create_topic", "create_topic_allowed_groups", false, "3.3"],
["min_trust_to_edit_post", "edit_post_allowed_groups", false, "3.3"],
["min_trust_to_flag_posts", "flag_post_allowed_groups", false, "3.3"],
]
def setup_deprecated_methods