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:
Ted Johansson
2024-01-05 10:19:43 +08:00
committed by GitHub
parent 2594f7a5a3
commit a5f0935307
17 changed files with 90 additions and 33 deletions

View File

@@ -107,7 +107,7 @@ RSpec.describe TopicCreator do
before do
SiteSetting.tagging_enabled = true
SiteSetting.min_trust_to_create_tag = 0
SiteSetting.create_tag_allowed_groups = Group::AUTO_GROUPS[:trust_level_0]
SiteSetting.min_trust_level_to_tag_topics = 0
end