Firestore rules for a collection with both Public and Private content

Database & APIs

I am working on a content app with users being able to choose between 3 visibility options similar to YouTube; Public (visible to all), Unlisted (visible to folks who have the link) and Private (visible only to the user).

What is the right way to set up the Firestore rules for these?

What have you tried so far?

If I make the Firestore rule visible to all, then I am worried I can not really make a story Private even if I implement some app level control. On the other hand if I make the setting Authenticated or Tagged users then Public stories can not be seen either by other users.

Did you check FlutterFlow's Documentation for this topic?
Yes
3
5 replies