Description
As part of the work that needs to be done for #10403, we need to implement role checks for mailables and email templates:
-
Role Designation for Email Templates: Enable editors to assign specific user groups when creating or editing an email template. This feature should be restricted to mailables associated with the submission workflow.
- This will require UI work on the Edit/Add Template side modal to support selecting user groups. Maybe something like a list of checkboxes or a multi-select dropdown might be enough. @Devika008 Tagging here for your input
-
Role Designation for mailables Allow mailables to be assigned to specific roles, ensuring that templates are accessible only to users with relevant roles.
-
Template-Specific Restrictions: Users should only access templates explicitly assigned to their group within each mailable. For example, if a mailable is accessible to both editors and authors, but a specific template is restricted to editors, then only editors should see that template, and authors should not have access.