From 8a5c460972c3b91f7e5513fad259008af5abe1c2 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Sun, 27 Sep 2015 22:19:26 -0400 Subject: [PATCH] CRM-16274 - Change permission for Add Contacts to Groups in reports to be the same as for that task in search results. ---------------------------------------- * 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 --- CRM/Report/Form.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 44c8981cfd..c7fea92b59 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -1409,7 +1409,9 @@ class CRM_Report_Form extends CRM_Core_Form { $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'), -- 2.25.1