.ical files not populating correctly for sites with ACL's configured for events
Overview
The iCal files for events are not populating correctly for sites that have ACLs for events set up.
Reproduction steps
- Create 2 events A and B
- Create an ACL for event B
- Go to the Event info page for Event A
- click the iCal button to download the .ics file.
Current behaviour
The file will look like:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//CiviCRM//NONSGML CiviEvent iCal//EN
X-WR-TIMEZONE:America/New_York
METHOD:PUBLISH
END:VCALENDAR
NOTE there are no dates or times
Expected behaviour
the .ics file should be populated to include the date/time of the event etc.
Environment information
I was able to replicate this on master
Comments
I think this has to do with this code: https://github.com/civicrm/civicrm-core/blob/master/CRM/Core/Permission.php#L355