This PR fixes the incorrect implementation where any migrant or merchant can create an event. The stakeholder would specifically like events to only be created by merchants.
Depending on what type of user you are, when you try to access events, a different message will show, and the "Create Event" button will only show for merchants.
To test:
log in with a migrant account
click on "Events" in the menu
verify that you see this:
log in with a merchant account
click on "Events" in the menu
verify that you see this:
you could optionally also try the same steps with an admin account. the steps should be the same as with a migrant account
215
This PR fixes the incorrect implementation where any migrant or merchant can create an event. The stakeholder would specifically like events to only be created by merchants.
Depending on what type of user you are, when you try to access events, a different message will show, and the "Create Event" button will only show for merchants.
To test:
log in with a migrant account
click on "Events" in the menu
verify that you see this:
log in with a merchant account
click on "Events" in the menu
verify that you see this:
you could optionally also try the same steps with an admin account. the steps should be the same as with a migrant account