forked from usdevs/usc-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirestore.rules
executable file
·36 lines (36 loc) · 1022 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
36
service cloud.firestore {
match /databases/{database}/documents {
match /users/{userId}/{document=**} {
allow read: if true;
allow write: if request.auth.uid == userId;
}
match /events/{document=**} {
allow read: if true;
allow write: if request.auth.uid == userId;
}
match /eventTypes/{document=**} {
allow read: if true;
allow write: if request.auth.uid == userId;
}
match /groupCategoryType/{document=**} {
allow read: if true;
allow write: if request.auth.uid == userId;
}
match /groupTypes/{document=**} {
allow read: if true;
allow write: if request.auth.uid == userId;
}
match /groups/{document=**} {
allow read: if true;
allow write: if request.auth.uid == userId;
}
match /spaces/{document=**} {
allow read: if true;
allow write: if request.auth.uid == userId;
}
match /{document=**} {
allow read: if true;
allow write: if request.auth!=null;
}
}
}