mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Category Reviewable by Group
Allow a group to review content in a particular category.
This commit is contained in:
@@ -20,7 +20,16 @@ class CategorySerializer < BasicCategorySerializer
|
||||
:allowed_tag_groups,
|
||||
:allow_global_tags,
|
||||
:topic_featured_link_allowed,
|
||||
:search_priority
|
||||
:search_priority,
|
||||
:reviewable_by_group_name
|
||||
|
||||
def reviewable_by_group_name
|
||||
object.reviewable_by_group.name
|
||||
end
|
||||
|
||||
def include_reviewable_by_group_name?
|
||||
SiteSetting.enable_category_group_review? && object.reviewable_by_group_id.present?
|
||||
end
|
||||
|
||||
def group_permissions
|
||||
@group_permissions ||= begin
|
||||
|
Reference in New Issue
Block a user