You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev/documentation/en/email-templates.md
+56Lines changed: 56 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -105,3 +105,59 @@ These templates can not be edited or deleted. However, each context can override
105
105
Only the overriden templates will be deleted when a context is deleted or has its email templates reset. The default data will remain.
106
106
107
107
When using the email templates repository, no extra consideration is required to fetch the correct email template. The repository's `delete` method will only delete custom data.
108
+
109
+
## Template access restrictions
110
+
111
+
Version 3.6 of OJS, OMP, and OPS allows Admins and managers to restrict email templates to specific user groups within a Context. By default, templates are open to all user groups, similar to previous versions.
112
+
113
+
Before displaying an email template to a user, you should check if the template is accessible to that user's user group.
### Configuring Email Template Access in emailTemplates.xml
148
+
149
+
When describing the data for email templates in `emailTemplates.xml`, you can specify if a template should be unrestricted by default using the `isUnrestricted` attribute.
In the above example, the email template is marked as unrestricted - available to all user groups. You can also mark a template as restricted by using `isUnrestricted="0"`. Restricted templates will only become accessible after being assigned to a user group or marked as unrestricted.
156
+
157
+
If the `isUnrestricted` attribute is omitted, the template will be treated as unrestricted by default.
0 commit comments