As a User
I want to be able to edit and delete the events I created
In order to react to changes
Acceptance criteria
[ ] Edit and Delete button on EventDetails Page is only visible if user currently logged in created this event
Tasks
[ ] Create new branch US_restrict-edit-and-delete
[ ] on event creation, save user id in event
[ ] add createdBy key to Event schema
[ ] populate createdBy key in Event schema with User objectId
[ ] in EventDetail component, conditionally render edit and delete button component to based on if current sessions user id is same as createdBy user ID
[ ] on edit page, check if user id is creator id, if not, restrict access(to prevent direct entry via url)
[ ] Style new elements according our styling criteria
Value proposition
As a User I want to be able to edit and delete the events I created In order to react to changes
Acceptance criteria
Tasks