From ee0fc8e3756c77311771c31566f4e7a6a7e7232d Mon Sep 17 00:00:00 2001 From: Alice Frumin Date: Thu, 5 Jul 2018 12:21:05 -0400 Subject: [PATCH] allow users with access civiEvent but not Edit All Events to edit their own events --- CRM/Event/BAO/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index 30ca5ffaf6..5d23c7cebc 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -2085,7 +2085,7 @@ WHERE ce.loc_block_id = $locBlockId"; // Search again, but only events created by the user. $params['created_id'] = 'user_contact_id'; $result = civicrm_api3('Event', 'get', $params); - $createdEvents = CRM_Utils_Array::collect('title', $result['values']); + $createdEvents = array_keys($result['values']); // Note: for a multisite setup, a user with edit all events, can edit all events // including those from other sites -- 2.25.1