-
Notifications
You must be signed in to change notification settings - Fork 0
/
firestore.rules
37 lines (30 loc) · 882 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
37
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /topics-article/{document=**} {
allow read: if true;
allow write: if request.auth != null;
}
match /articles/{document=**} {
allow read: if true;
allow write: if request.auth != null;
}
match /article-view-logs/{document=**} {
allow read: if true;
allow write: if request.auth != null;
}
match /article-likes-logs/{document=**} {
allow read: if true;
allow write: if request.auth != null;
}
match /article-topic-follow-logs/{document=**} {
allow read: if true;
allow write: if request.auth != null;
}
match /users-role/{document=**} {
allow read: if true;
allow create: if request.auth.uid != null;
allow update: if request.auth.uid != null;
}
}
}