From dfa720e70693d2ccaadd891b4a315aad6fbec032 Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Wed, 29 Jan 2014 14:07:47 -0800 Subject: [PATCH] CRM-14101 - Unauthenticated/anonymous users can register for events even when Drupal permissions should stop them http://issues.civicrm.org/jira/browse/CRM-14101 --- CRM/Core/Permission.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CRM/Core/Permission.php b/CRM/Core/Permission.php index 4f75345e49..5eafcda6ae 100644 --- a/CRM/Core/Permission.php +++ b/CRM/Core/Permission.php @@ -336,9 +336,7 @@ class CRM_Core_Permission { if (!empty($permissionedEvents)) { return array_search($eventID, $permissionedEvents) === FALSE ? NULL : $eventID; } - else { - return $eventID; - } + return NULL; } static function eventClause($type = CRM_Core_Permission::VIEW, $prefix = NULL) { -- 2.25.1