-
Notifications
You must be signed in to change notification settings - Fork 0
/
firestore.rules
41 lines (41 loc) · 1.12 KB
/
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
37
38
39
40
41
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
match /deletedGoods/{deletedGoods} {
allow read: if false;
allow create: if request.auth.uid != null;
}
match /favoriteGoods/{favoriteGoods} {
allow read: if true;
allow write: if request.auth.uid != null;
}
match /fcmTokens/{fcmToken} {
allow read, write: if request.auth.uid != null;
}
match /goods/{goods} {
allow read: if true;
allow write: if request.auth.uid != null;
}
match /goodsComments/{goodsComment} {
allow read: if true;
allow write: if request.auth.uid != null;
}
match /groups/{group} {
allow read: if true;
allow write: if false;
}
match /messages/{message} {
allow read, write: if request.auth.uid != null;
}
match /profiles/{profile} {
allow read, create, update: if request.auth.uid != null;
allow delete: if false;
}
match /userInfos/{userInfo} {
allow read, write: if request.auth.uid != null;
}
}
}