Does permission checks to see if an event can be linked to a board/topic.
checks if the current user can link the current topic to the calendar, permissions et al.
this requires the calendar_post permission, a forum moderator, or a topic starter.
expects the $topic and $board variables to be set.
if the user doesn't have proper permissions, an error will be shown.