Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 631 Bytes

File metadata and controls

30 lines (23 loc) · 631 Bytes
rules_version = '2';

service cloud.firestore {
  match /databases/{database}/documents {
  
    // match /{document=**} {
    //   allow read, write: if false;
    // }
    
    match /users/{userId}/{document=**} {
    	allow read: if true;
    }
    
    // Restrict Write Access to the User's own data
    match /users/{userId}/{document=**} {
        allow write: if request.auth.uid == userId;
    }
    
    match /bookings/{bookingId}/{document=**} {
    	allow read, write: if true;
    }
    
    // match /bookings/{bookingId}/{document=**} {
    // 	allow write: if request.auth.uid != null;
    // }
    
  }
}