hatchways / team-water-polo

1 stars 1 forks source link

FE: Ensure authorization to view a team #37

Open moffatethan opened 2 years ago

moffatethan commented 2 years ago

We want to make sure a user accessing the route is a part of the team. When loading the component in when, make sure to check the teams collaborators and owner to make sure the authenticated user can access that team. If not, redirect back to dashboard and send a snackbar notification.