CRM-14101 - Unauthenticated/anonymous users can register for events even when Drupal...
authorDonald A. Lobo <lobo@civicrm.org>
Wed, 29 Jan 2014 22:07:47 +0000 (14:07 -0800)
committerDonald A. Lobo <lobo@civicrm.org>
Wed, 29 Jan 2014 22:07:47 +0000 (14:07 -0800)
http://issues.civicrm.org/jira/browse/CRM-14101

CRM/Core/Permission.php

index 4f75345e49bfa11234b646f0703446899a045bb4..5eafcda6aee07c8bdb60d10902a192833d1951d0 100644 (file)
@@ -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) {