Details
Description
See http://forum.civicrm.org/index.php/topic,22488.0.html
As a user without "edit all events" or "view event participants", with no ACLs for events in place from the UI...
(1) The event summary at /civicrm/event?reset=1 respects ACL hooks in a way that mostly seems correct: e.g. if hook_aclGroup allows access to 1 event, then that 1 event shows in the summary. However if the user should be able to see NO events, the summary shows ALL events.
(2) The value for $eventSummary['total_events'] calculated and passed to the template ignores ACLs. This could cause pager problems.
The attached patch against 4.0.7 addresses both issues. Works for me but should be QA'd.