----------------------------------------
* CRM-20988: Don't display option of Export, Delete etc to users who lack that permission
https://issues.civicrm.org/jira/browse/CRM-20988
"created_id.sort_name",
"created_id",
);
+ if (!CRM_Core_Permission::check("view all manual batches")) {
+ if (CRM_Core_Permission::check("view own manual batches")) {
+ $loggedInContactId = CRM_Core_Session::singleton()->get('userID');
+ $params['created_id'] = $loggedInContactId;
+ }
+ else {
+ $params['created_id'] = 0;
+ }
+ }
foreach ($return as $field) {
if (!isset($params[$field])) {
continue;