Closed briantu closed 1 year ago
This fix works, but not sure if it's the best way to do it cuz it's a bit messy. Lmk if this is okay - if it is, then I'll also do it for the volunteer posting availabilities page!
Visit the preview URL for this PR (updated for commit 8e566d0):
https://sistering-dev--pr637-brian-only-show-post-6joolkii.web.app
(expires Tue, 30 Aug 2022 00:07:42 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
hmm would it make more sense to do this on the server side instead? ie: for the posting query, if the current user is a volunteer, make sure the posting is in the same branch as the volunteer, otherwise, on error we redirect instead of showing a toast @briantu would that be better?
Wait yeah that sounds like a better solution
Ticket link
Closes #612
Implementation description
Steps to test
What should reviewers focus on?
Checklist