CRM-18046: Search link in AB Testing report erroneously requires view all contacts...
authoryashodha <yashodha.chaku@webaccessglobal.com>
Wed, 18 May 2016 07:06:03 +0000 (12:36 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Wed, 18 May 2016 07:06:03 +0000 (12:36 +0530)
----------------------------------------
* CRM-18046: Search link in AB Testing report erroneously requires view all contacts permission
  https://issues.civicrm.org/jira/browse/CRM-18046

CRM/Mailing/Info.php
ang/crmMailingAB/EditCtrl/report.html

index 8322fb9cd79061138de0cf668b543bdf4a307a73..1fdd0e27b12ccec93a87e7224fabb1197edbbb1b 100644 (file)
@@ -187,6 +187,7 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info {
       ))
       ->addPermissions(array(
         'view all contacts',
+        'edit all contacts',
         'access CiviMail',
         'create mailings',
         'schedule mailings',
index 273f2f8bd8a31a5fb710fe70c1f50a6573b50661..d75d0ed23d8a34b02d1a25062a31c799489b768c 100644 (file)
@@ -70,7 +70,7 @@
         <a
           class="crm-hover-button action-item"
           ng-href="{{statUrl(am.mailing, statType, 'search')}}"
-          ng-if="checkPerm('view all contacts')"
+          ng-if="checkPerm('view all contacts') || checkPerm('edit all contacts')"
           title="{{ts('Search for contacts using \'%1\'', {1: statType.title})}}"
           crm-icon="fa-search"
           ></a>