Merge pull request #12346 from michaelmcandrew/dev/mail/15
[civicrm-core.git] / CRM / Case / BAO / Case.php
index 0fa87b459e92f0910c38cfc3f885a539934ffea0..750cf012d82eb3a01f4906a29f315740de2d1947 100644 (file)
@@ -2745,6 +2745,12 @@ WHERE id IN (' . implode(',', $copiedActivityIds) . ')';
       //allow edit operation.
       $allowEditNames = array('Open Case');
 
+      if (CRM_Core_Permission::check('edit inbound email basic information') ||
+        CRM_Core_Permission::check('edit inbound email basic information and content')
+      ) {
+        $allowEditNames[] = 'Inbound Email';
+      }
+
       // do not allow File on Case
       $doNotFileNames = array(
         'Open Case',