-
Notifications
You must be signed in to change notification settings - Fork 466
Description
It's currently possible to create new email templates for mailables in a way that helps editors create their own email-based workflows. However, all mailables are available to all users when selecting a template, which can lead to inappropriate choices.
From e.g. Settings
> Workflow
> Emails
> Add and edit templates
> Discussion (Copyediting)
:
When an assigned Copyeditor goes to create a new discussion in the Copyediting stage, their Choose a predefined message to use
dropdown includes Request Copyedit
, which is inappropriate.
To resolve this, we should add support for mailables to be designated as appropriate for certain user groups, so that when a user sees a list of possible email templates, they are only given a list that's relevant or appropriate to them. It should be possible to designate user groups when creating/editing an email template within a mailable. This should only be available on certain mailables, as not all will be related to submission workflow.
Update 2024-10-25: Specification
(from @ewhanson)
Initial steps should be to identify which roles should have access to which mailable templates as well as identifying all mailables across all applications and first-party plugins (if any). From an initial assessment of the feature, it doesn't seem like any new UI elements/pages will be necessary, but an additional todo for that work should be added if it's deemed necessary. Any mailables that roles do not have access to should not show up when creating new templates.
Note: Each todo below should be tracked as separate issues. This issue should only be closed once this work package has been finished entirely.
TODOs
- Identify which sender/receiver roles should have access to which mailables
- Implement role check for mailables #10571
- Investigate what extension support is required (i.e. for existing plugins, mailables added via plugins that don't have roles assigned, etc.) #10649
- Provide documentation for pkp/pkp-lib#10403 feature (changes for release notebook, for docs hub, plugin guide, etc.) #10650
- Add e2e tests #10745
Sub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Status
Status