mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user