mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 00:17:17 +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:
@ -1,7 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
RSpec.describe Search do
|
||||
fab!(:admin)
|
||||
fab!(:admin) { Fabricate(:admin, refresh_auto_groups: true) }
|
||||
fab!(:topic)
|
||||
|
||||
before do
|
||||
@ -1378,7 +1378,7 @@ RSpec.describe Search do
|
||||
SiteSetting.tagging_enabled = true
|
||||
DiscourseTagging.tag_topic_by_names(
|
||||
post.topic,
|
||||
Guardian.new(Fabricate.build(:admin)),
|
||||
Guardian.new(Fabricate(:admin, refresh_auto_groups: true)),
|
||||
[tag.name, uppercase_tag.name],
|
||||
)
|
||||
post.topic.save
|
||||
|
Reference in New Issue
Block a user