upgrader script
authorAlice Frumin <alice@aghstrategies.com>
Thu, 7 Jan 2021 18:24:13 +0000 (13:24 -0500)
committerAlice Frumin <alice@aghstrategies.com>
Fri, 8 Jan 2021 16:46:32 +0000 (11:46 -0500)
CRM/Upgrade/Incremental/sql/5.34.alpha1.mysql.tpl

index 3bf32eb8bd46eb3c279fc8c5a27266c2b53c95e3..118ee6797a4b6073262a07ffa80020b0de5c33fa 100644 (file)
@@ -9,3 +9,9 @@ INSERT IGNORE INTO `civicrm_state_province` (`id`, `country_id`, `abbreviation`,
 DELETE FROM civicrm_mapping_field
 WHERE name NOT IN ( SELECT concat('custom_', id) FROM civicrm_custom_field)
 AND name LIKE 'custom_%';
+
+-- Update permissions for CiviCRM Admin Menu -> CiviMail -> Message Templates
+UPDATE civicrm_navigation n
+SET n.permission = 'edit user-driven message templates,edit message templates,edit system workflow message templates', n.permission_operator = 'OR'
+WHERE n.name = 'Message Templates'
+AND n.permission = 'edit message templates';