mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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:
@@ -26,17 +26,13 @@ class CategorySerializer < SiteCategorySerializer
|
||||
:custom_fields,
|
||||
:topic_featured_link_allowed,
|
||||
:search_priority,
|
||||
:reviewable_by_group_name,
|
||||
:moderating_group_ids,
|
||||
:default_slow_mode_seconds
|
||||
|
||||
has_one :category_setting, serializer: CategorySettingSerializer, embed: :objects
|
||||
|
||||
def reviewable_by_group_name
|
||||
object.reviewable_by_group.name
|
||||
end
|
||||
|
||||
def include_reviewable_by_group_name?
|
||||
SiteSetting.enable_category_group_moderation? && object.reviewable_by_group_id.present?
|
||||
def include_moderating_group_ids?
|
||||
SiteSetting.enable_category_group_moderation?
|
||||
end
|
||||
|
||||
def include_category_setting?
|
||||
|
||||
Reference in New Issue
Block a user