aaronjohnweiss / ascndr

Climbing tracked.
Apache License 2.0
3 stars 0 forks source link

Fix video feed permissions #98

Closed agilaz closed 1 year ago

agilaz commented 1 year ago

I think a better way to handle this long term might be pulling videos out into their own collection in firebase, instead of having them nested within a route like they are now. That way we could set up the usual filters so that when you pull data from state you only get videos that you can view. Then in the route page for example we'd do something like firebaseState.getVideos(['viewer', uid], ['routeKey', key]). Any opinions on this approach?