CRM-16498 resolve strict warnings on event permissions
authorTim Mallezie <tim.mallezie@chiro.be>
Wed, 13 May 2015 12:49:09 +0000 (14:49 +0200)
committerTim Mallezie <tim.mallezie@chiro.be>
Wed, 13 May 2015 12:49:09 +0000 (14:49 +0200)
CRM/Event/BAO/Event.php

index 00372391d9d2fdeac489a1c92a37caf042f26848..c64157486afb673933e4ffee0e0338cfa4b62424 100644 (file)
@@ -2029,7 +2029,7 @@ WHERE  ce.loc_block_id = $locBlockId";
         $permissions[CRM_Core_Permission::EDIT] = array_keys($allEvents);
       }
       else {
-        $permissions[CRM_Core_Permission::EDIT] = &CRM_ACL_API::group(CRM_Core_Permission::EDIT, NULL, 'civicrm_event', $allEvents, $createdEvents);
+        $permissions[CRM_Core_Permission::EDIT] = CRM_ACL_API::group(CRM_Core_Permission::EDIT, NULL, 'civicrm_event', $allEvents, $createdEvents);
       }
 
       if (CRM_Core_Permission::check('edit all events')) {
@@ -2044,7 +2044,7 @@ WHERE  ce.loc_block_id = $locBlockId";
           // at the same time also allow any hook to override if needed.
           $createdEvents = array_keys($allEvents);
         }
-        $permissions[CRM_Core_Permission::VIEW] = &CRM_ACL_API::group(CRM_Core_Permission::VIEW, NULL, 'civicrm_event', $allEvents, $createdEvents);
+        $permissions[CRM_Core_Permission::VIEW] = CRM_ACL_API::group(CRM_Core_Permission::VIEW, NULL, 'civicrm_event', $allEvents, $createdEvents);
       }
 
       $permissions[CRM_Core_Permission::DELETE] = array();