tusmanakhter / MigrantHub

MIT License
4 stars 3 forks source link

215 only merchants create events #218

Closed miramarhaba closed 5 years ago

miramarhaba commented 5 years ago

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:

miramarhaba commented 5 years ago

Server code should be changed to reflect this too. Only merchant users should be able to call the API endpoints.

@tusmanakhter done