From 2695acbe36d3b91173abcb05afc2f38479b7c3a0 Mon Sep 17 00:00:00 2001 From: David Hayes Date: Tue, 20 Sep 2016 16:25:23 -0500 Subject: [PATCH] remove unnecessary permission check on event info page --- CRM/Event/Page/EventInfo.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/CRM/Event/Page/EventInfo.php b/CRM/Event/Page/EventInfo.php index 5eaa6d33e4..9323108134 100644 --- a/CRM/Event/Page/EventInfo.php +++ b/CRM/Event/Page/EventInfo.php @@ -242,15 +242,11 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { $this->assign('mapURL', $mapURL); } - if (CRM_Core_Permission::check('view event participants') && - CRM_Core_Permission::check('view all contacts') - ) { - $statusTypes = CRM_Event_PseudoConstant::participantStatus(NULL, 'is_counted = 1', 'label'); - $statusTypesPending = CRM_Event_PseudoConstant::participantStatus(NULL, 'is_counted = 0', 'label'); - $findParticipants['statusCounted'] = implode(', ', array_values($statusTypes)); - $findParticipants['statusNotCounted'] = implode(', ', array_values($statusTypesPending)); - $this->assign('findParticipants', $findParticipants); - } + $statusTypes = CRM_Event_PseudoConstant::participantStatus(NULL, 'is_counted = 1', 'label'); + $statusTypesPending = CRM_Event_PseudoConstant::participantStatus(NULL, 'is_counted = 0', 'label'); + $findParticipants['statusCounted'] = implode(', ', array_values($statusTypes)); + $findParticipants['statusNotCounted'] = implode(', ', array_values($statusTypesPending)); + $this->assign('findParticipants', $findParticipants); $participantListingID = CRM_Utils_Array::value('participant_listing_id', $values['event']); if ($participantListingID) { -- 2.25.1