diff --git a/src/components/Container/ManageEmailsPage.vue b/src/components/Container/ManageEmailsPage.vue index 86cdfb11e..628ffb79f 100644 --- a/src/components/Container/ManageEmailsPage.vue +++ b/src/components/Container/ManageEmailsPage.vue @@ -408,6 +408,14 @@ export default { }); } + // Remove user group fields if current mailable does not support specifying user group access + if (!this.currentMailable.canAssignUserGroupToTemplates) { + templateForm.fields = templateForm.fields.filter( + (field) => + !['assignedUserGroupIds', 'isUnrestricted'].includes(field.name), + ); + } + templateForm.fields = templateForm.fields.map((field) => { if (field.name === 'body') { field.preparedContent = Object.keys(