Add public-inbox to Email-In-Feature

- Adds the advanced option to accept email from non-users per category email-address
 - Adds tests covering the new feature
 - Adds UI to configure this feature in the frontend
This commit is contained in:
Benjamin Kampmann
2014-02-27 16:36:33 +01:00
parent 37cea49459
commit d32cb55837
10 changed files with 118 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ class CategorySerializer < BasicCategorySerializer
:group_permissions,
:position,
:email_in,
:email_in_allow_strangers,
:can_delete
def group_permissions
@@ -40,4 +41,8 @@ class CategorySerializer < BasicCategorySerializer
scope && scope.can_edit?(object)
end
def include_email_in_allow_strangers?
scope && scope.can_edit?(object)
end
end