CRM-21425: Allow to Edit Inbound E-mails Within CiviCase
[civicrm-core.git] / CRM / Activity / Form / Activity.php
index ce6404aff9fcf9f9c383c54c56f59531c32a149e..4990f1a3c3187e4f5d71aa131190ade4c8cc5a15 100644 (file)
@@ -308,6 +308,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
       CRM_Activity_BAO_Activity::checkPermission($this->_activityId, CRM_Core_Action::UPDATE)
     ) {
       $this->assign('permission', 'edit');
+      $this->assign('allow_edit_inbound_emails', CRM_Activity_BAO_Activity::checkEditInboundEmailsPermissions());
     }
 
     if (!$this->_activityTypeId && $this->_activityId) {