Skip to content
Snippets Groups Projects
Commit 129c83ab authored by lobo's avatar lobo
Browse files

Merge pull request #2428 from dlobo/CRM-14101

CRM-14101 - Unauthenticated/anonymous users can register for events even when Drupal permissions should stop them
parents db409212 dfa720e7
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment