Skip to content

How to manage privacy settings #1

Description

@ROODAY

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions