projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db40921
)
CRM-14101 - Unauthenticated/anonymous users can register for events even when Drupal...
author
Donald A. Lobo
<lobo@civicrm.org>
Wed, 29 Jan 2014 22:07:47 +0000
(14:07 -0800)
committer
Donald 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
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/Permission.php
b/CRM/Core/Permission.php
index 4f75345e49bfa11234b646f0703446899a045bb4..5eafcda6aee07c8bdb60d10902a192833d1951d0 100644
(file)
--- 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) {