a guest Jul 21st, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. service cloud.firestore {  
  2.     match /databases/{database}/documents {
  3.         // Anyone can read a product, only authorized
  4.         // users can create or update. Deletes are not allowed.
  5.         match /products/{productId} {
  6.             allow read: if true;
  7.             allow create, update: if request.auth.uid != null;
  8.         }
  9.     }
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand