mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 22:18:08 +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:
@ -386,7 +386,8 @@ RSpec.describe PostValidator do
|
||||
SiteSetting.enable_category_group_moderation = true
|
||||
group = Fabricate(:group)
|
||||
GroupUser.create(group: group, user: user)
|
||||
category = Fabricate(:category, reviewable_by_group_id: group.id)
|
||||
category = Fabricate(:category)
|
||||
Fabricate(:category_moderation_group, category:, group:)
|
||||
topic.update!(category: category)
|
||||
|
||||
Post.create!(user: other_user, topic: topic, raw: "post number 1", post_number: 1)
|
||||
|
Reference in New Issue
Block a user