mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 20:41:24 +08:00
FEATURE: Support designating multiple groups as mods on category (#28655)
Currently, categories support designating only 1 group as a moderation group on the category. This commit removes the one group limitation and makes it possible to designate multiple groups as mods on a category. Internal topic: t/124648.
This commit is contained in:
@ -308,7 +308,8 @@ RSpec.describe TopicQuery do
|
||||
group_moderator = Fabricate(:user)
|
||||
group = Fabricate(:group)
|
||||
group.add(group_moderator)
|
||||
category = Fabricate(:category, reviewable_by_group: group)
|
||||
category = Fabricate(:category)
|
||||
Fabricate(:category_moderation_group, category:, group:)
|
||||
_topic = Fabricate(:topic, category: category, deleted_at: 1.year.ago)
|
||||
|
||||
expect(TopicQuery.new(admin, status: "deleted").list_latest.topics.size).to eq(1)
|
||||
|
Reference in New Issue
Block a user