CRM-21425: Add Permissions to Edit Inbound E-mails
authorCamilo Rodriguez <camilo@compucorp.co.uk>
Tue, 14 Nov 2017 19:21:30 +0000 (19:21 +0000)
committerCamilo Rodriguez <camilo@compucorp.co.uk>
Mon, 9 Jul 2018 11:39:14 +0000 (11:39 +0000)
commitee90a98c70dcc9e33f25a48c6f60646ecd98ba95
tree844c574569fce53f5b678644d7dc87b40221dbbc
parent5a95845ef2912dfad027cfba7b7c247f0413678f
CRM-21425: Add Permissions to Edit Inbound E-mails

The following permissions were added to CiviCRM core:

- CiviCRM: edit inbound email basic information
- CiviCRM: edit inbound email basic information and content

Having any of these permissions will alow  user to edit inbound E-mails, but
only the latter will allow users to also change the original email's content.

E-mails downloaded and stored as Inbound Email activities were saving their
details in two formats, as an ezComponents-parsed representation of
a text with alternatives. These alternatives were being stripped on the
Activity Form template, with the side effect of also stripping the textarea
where the wysiwyg editor would be built upon.

Fixed by stripping alternatives when preprocessing the quickform instead,
before the html for the textarea is generated.
CRM/Activity/Form/Activity.php
CRM/Activity/Page/Tab.php
CRM/Activity/Selector/Activity.php
CRM/Case/BAO/Case.php
CRM/Core/Permission.php
templates/CRM/Activity/Form/Activity.tpl