Edit message templates permission not working as expected
Overview
Users without the CiviCRM: edit message templates
permision, can update Templates via the Print/Merge Document
.
Reproduction steps
-
Assign a role without the
CiviCRM: edit message templates
permision to an User -
Log in with that User and get to any Contact.
-
Create a Print/Merge Document Activity.
-
Use an already created Template.
-
Modify it in the Document Body
-
It will appear the Check box Update and if the User select it, it will Update the Template
Expected behaviour
The checkbox that let you Update a Template shouldn't appear if the User doesn't have the CiviCRM: edit message templates
permision.
Environment information
- CiviCRM: 5.69.1
- CMS: Drupal 10