Stray Register Participant link on event pages
Created by: a-sassmannshausen
Hello,
It seems the template at templates/CRM/Calendar/Page/Field/EventInfo.tpl adds a stray Register Participant link to all event pages, whether the user has permissions or not, and whether online registration is enabled or not. When an anonymous user clicks on this link they get taken to an access denied page.
The issue is caused by the div.crm-actions-ribbon and its child menus missing from public event pages.
As a result the element added in the above page at the bottom of the page just stays at the bottom of the page instead of being placed correctly, and then $(elem).show() is applied unconditonally.
A fix would be to test for the existence of div.crm-actions-ribbon $(document).ready.
What do you think?
Alex