----------------------------------------
* CRM-16274: Change the permission required for 'Add Contacts to Group' in reports to be consistent with other workflows
https://issues.civicrm.org/jira/browse/CRM-16274
$this->addElement('submit', $this->_csvButtonName, $label);
}
- if (CRM_Core_Permission::check('administer Reports') &&
+ // CRM-16274 Determine if user has 'edit all contacts' or equivalent
+ $permission = CRM_Core_Permission::getPermission();
+ if ($permission == CRM_Core_Permission::EDIT &&
$this->_add2groupSupported
) {
$this->addElement('select', 'groups', ts('Group'),