Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 975
    • Issues 975
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • Core
  • Issues
  • #1751

Closed
Open
Opened May 11, 2020 by fran@compucorp.co.uk@fran

Email template permissions

Overview

In the email modal, CiviCRM users can write an email from scratch or use an existing message template. They are given the options to update existing templates or save a new template.

These options are currently available and can be completed by users with basic access to CiviCRM*, even when they do not have the permission CiviCRM: edit message templates.

Organisations want to create standard message templates that cannot be altered by the hundreds of staff using the templates. They need to be able to set this up as a user permission.

Current behaviour

When writing an email in the email modal, CiviCRM users can write an email from scratch or use an existing template. If they write an email from scratch they have the option to save their email as a new message template. If they use an existing template, they have an option to ‘update’ the template or save it as a new message template.

When a CiviCRM user writes an email, selects ‘Save as new template’ and sends the email, a new message template is created. These steps are the same when a user edits an already existing email template.

When a CiviCRM user selects an existing email template, makes changes to the content, selects ‘Update template’ and sends the email, the existing template is updated to whatever content the user has changed.

permissions_template

Email templates can be accessed where the email modal is triggered (e.g. contact record, cases extension etc.).

Expected behaviour

Acceptance criteria:

Any user that does not have the permission to update email templates [CiviCRM: edit message templates] should not see the check box ‘Update Template’

Any user that does not have the permission to create email templates [CiviCRM: edit message templates] should not be able to edit the content of email templates

permissions_update_template

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
5.29.0
Milestone
5.29.0
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#1751