mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: suppress categories from the homepage
This commit is contained in:
@@ -8,6 +8,7 @@ class CategorySerializer < BasicCategorySerializer
|
||||
:position,
|
||||
:email_in,
|
||||
:email_in_allow_strangers,
|
||||
:suppress_from_homepage,
|
||||
:can_delete,
|
||||
:cannot_delete_reason,
|
||||
:allow_badges,
|
||||
@@ -56,4 +57,8 @@ class CategorySerializer < BasicCategorySerializer
|
||||
scope && scope.can_edit?(object)
|
||||
end
|
||||
|
||||
def include_suppress_from_homepage?
|
||||
scope && scope.can_edit?(object)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user