Skip to content

Instantly share code, notes, and snippets.

View codewithahad01's full-sized avatar
😎
Curious about learning new technologies

Ahad Ahmadi codewithahad01

😎
Curious about learning new technologies
View GitHub Profile
@codewithahad01
codewithahad01 / firebase_rules.txt
Created May 13, 2022 16:53 — forked from bradtraversy/firebase_rules.txt
Firebase rules for house marketplace app
// FIRESTORE RULES
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
// Listings
match /listings/{listing} {
allow read;
allow create: if request.auth != null && request.resource.data.imgUrls.size() < 7;
allow delete: if resource.data.userRef == request.auth.uid;