FEATURE: suppress categories from the homepage

This commit is contained in:
Régis Hanol
2015-09-02 20:25:18 +02:00
parent a76d1079b2
commit a501947d67
12 changed files with 116 additions and 135 deletions

View File

@@ -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