ChaelCodes / MeetAnotherDay

An app to help you find and meet up with your friends at conferences.
MIT License
35 stars 20 forks source link

Hide the New Event button if the User isn't signed in #92

Closed ChaelCodes closed 2 years ago

ChaelCodes commented 2 years ago

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.

vilusa commented 2 years ago

Hi @ChaelCodes,

Can you assign the issue to me?

ChaelCodes commented 2 years ago

Hi @ChaelCodes,

Can you assign the issue to me?

Assigned! Have fun!