Rules for Firestore

·

1 min read

rules_version = '2';

service cloud.firestore {  
  match /databases/{database}/documents {
       match /{document=**}  {
         allow read: if true;
         allow create: if request.auth.uid != null;
         allow delete, update: if request.resource.data.scoopManager == request.auth.uid;
    }
  }
}