Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to manage privacy settings #1

Open
ROODAY opened this issue Aug 14, 2020 · 0 comments
Open

How to manage privacy settings #1

ROODAY opened this issue Aug 14, 2020 · 0 comments

Comments

@ROODAY
Copy link
Member

ROODAY commented Aug 14, 2020

Users can choose to keep info private, shared with school members, or all UPE. Need two stages:

  1. On DB side need security rules. allow read if (user signed in) and (resource.visibility == public or resource.visibility == request.school)
    allow write if auth id matches db id

  2. On client side, need to fetch all public records and all records where visibility matches authuser school. Will need to dedupe:
    https://medium.com/firebase-tips-tricks/how-to-combined-two-firestore-queries-to-simulate-a-logical-or-query-27d28a43cb2d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant