mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 15:28:30 +08:00
DEV: Convert min_trust_level_to_tag_topics to groups (#25273)
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_tag_topics site setting to tag_topic_allowed_groups.
This commit is contained in:
@ -40,6 +40,7 @@ module SiteSettings::DeprecatedSettings
|
||||
["min_trust_to_post_embedded_media", "embedded_media_post_allowed_groups", false, "3.3"],
|
||||
["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"],
|
||||
]
|
||||
|
||||
OVERRIDE_TL_GROUP_SETTINGS = %w[
|
||||
@ -64,6 +65,7 @@ module SiteSettings::DeprecatedSettings
|
||||
min_trust_to_post_embedded_media
|
||||
min_trust_to_post_links
|
||||
min_trust_level_for_user_api_key
|
||||
min_trust_level_to_tag_topics
|
||||
]
|
||||
|
||||
def group_to_tl(old_setting, new_setting)
|
||||
|
Reference in New Issue
Block a user