albertlyuan / ranked-mini

1 stars 0 forks source link

insecure rules #23

Closed albertlyuan closed 1 year ago

albertlyuan commented 1 year ago

https://firebase.google.com/docs/rules/insecure-rules

albertlyuan commented 1 year ago

service cloud.firestore { match /databases/{database}/documents { // Allow only authenticated content owners access match /some_collection/{document} { allow read, write: if request.auth != null && request.auth.uid == request.resource.data.author_uid } } }

albertlyuan commented 1 year ago

change to make db: signinUID: {db}