mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 02:05:49 +08:00
DEV: Convert min_trust_level_to_tag_topics to groups (#25258)
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:
@ -419,7 +419,7 @@ RSpec.describe TopicsBulkAction do
|
||||
|
||||
before do
|
||||
SiteSetting.tagging_enabled = true
|
||||
SiteSetting.min_trust_level_to_tag_topics = 0
|
||||
SiteSetting.tag_topic_allowed_groups = Group::AUTO_GROUPS[:trust_level_0]
|
||||
topic.tags = [tag1, tag2]
|
||||
Group.refresh_automatic_groups!
|
||||
end
|
||||
@ -488,7 +488,7 @@ RSpec.describe TopicsBulkAction do
|
||||
|
||||
before do
|
||||
SiteSetting.tagging_enabled = true
|
||||
SiteSetting.min_trust_level_to_tag_topics = 0
|
||||
SiteSetting.tag_topic_allowed_groups = Group::AUTO_GROUPS[:trust_level_0]
|
||||
topic.tags = [tag1, tag2]
|
||||
Group.refresh_automatic_groups!
|
||||
end
|
||||
@ -559,7 +559,7 @@ RSpec.describe TopicsBulkAction do
|
||||
|
||||
before do
|
||||
SiteSetting.tagging_enabled = true
|
||||
SiteSetting.min_trust_level_to_tag_topics = 0
|
||||
SiteSetting.tag_topic_allowed_groups = Group::AUTO_GROUPS[:trust_level_0]
|
||||
topic.tags = [tag1, tag2]
|
||||
Group.refresh_automatic_groups!
|
||||
end
|
||||
|
Reference in New Issue
Block a user