eventespresso / ee4-events-calendar

Event Espresso Calendar addon (for EE4+)
0 stars 3 forks source link

Include private events on the calendar if the current user has the capability to view them #9

Closed Pebblo closed 4 years ago

Pebblo commented 4 years ago

Problem this Pull Request solves

See: https://events.codebasehq.com/projects/event-espresso/tickets/9788 And: https://eventespresso.com/topic/private-events-in-calendar/

How has this been tested

Set an event to be private.

View the calendar whilst not logged into the site, that event should not be viewable.

View the calendar whilst logged in as a subscriber, again, the event should not be viewable.

Update your user account to have the ee_read_private_events events cap, the event should now be viewable.

Checklist

sethshoultes commented 4 years ago

This is working for me as outlined in the testing notes

sethshoultes commented 4 years ago

@Pebblo do you want further testing on this or do you think it's okay for release?

Pebblo commented 4 years ago

Thanks Seth. I think this can be released as is.