If the user isn't signed in, then they can't create events. We should hide the button on the events/index! We can actually check if they can create an event using pundit instead of if there's a current user. We may restrict event creation more in the future.
Changes
Wrap the button in an if that checks if event creation is allowed by pundit
Description
If the user isn't signed in, then they can't create events. We should hide the button on the events/index! We can actually check if they can create an event using pundit instead of if there's a current user. We may restrict event creation more in the future.
Changes
Please add a feature test. TY.