mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
DEV: Convert min_trust_level_to_create_tag to groups (#24899)
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_create_tag site setting to create_tag_allowed_groups. This PR maintains backwards compatibility until we can update plugins and themes using this.
This commit is contained in:
@ -34,6 +34,7 @@ module SiteSettings::DeprecatedSettings
|
||||
["min_trust_level_to_allow_invite", "invite_allowed_groups", false, "3.3"],
|
||||
["min_trust_level_to_allow_ignore", "ignore_allowed_groups", false, "3.3"],
|
||||
["min_trust_to_allow_self_wiki", "self_wiki_allowed_groups", false, "3.3"],
|
||||
["min_trust_to_create_tag", "create_tag_allowed_groups", false, "3.3"],
|
||||
]
|
||||
|
||||
OVERRIDE_TL_GROUP_SETTINGS = %w[
|
||||
@ -52,6 +53,7 @@ module SiteSettings::DeprecatedSettings
|
||||
min_trust_level_to_allow_user_card_background
|
||||
min_trust_level_to_allow_invite
|
||||
min_trust_level_to_allow_ignore
|
||||
min_trust_to_create_tag
|
||||
]
|
||||
|
||||
def group_to_tl(old_setting, new_setting)
|
||||
|
Reference in New Issue
Block a user