forked from monginadiana/italanta-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirestore.rules
35 lines (29 loc) · 829 Bytes
/
firestore.rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if request.auth != null;
}
// Collection: channels
match /channels/{channel} {
allow read, write: if request.auth != null;
}
// Collection: orgs
match /orgs/{orgId} {
allow create: if request.auth != null;
allow read, write: if request.auth != null;
// orgs > stories
match /stories/{story} {
allow read, write: if request.auth != null;
}
// orgs > end-users
match /end-users/{endUser} {
allow read, write, update: if request.auth != null;
}
// orgs > files
match /files/{file} {
allow read, write, update: if request.auth != null;
}
}
}
}