We are using D365 for Marketing for Event Management, and have set up the Event portal using the Angular template. We send out event invitations using Marketing Emails, and include the link to the event registration page. If the event end date passes, or if we cancel or unpublish the event, the event is no longer listed on the main page in the event portal. However - it is still possible to register for the event (even though the event is unpublished) by using the link included in the invitation email.
My question - how can we stop the possibility to register for an event if it is unpublished? Or is it possible to specify an end date, after which the event registration page is no longer accessible?