-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirestore.rules
44 lines (44 loc) · 1.74 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
42
43
44
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /catalog/{document=**} {
allow read: if true;
allow write: if request.auth != null && request.auth.token.admin == true;
}
match /instructors/{document=**} {
allow read: if true;
allow write: if request.auth != null && request.auth.token.admin == true;
}
match /sections/{document=**} {
allow read: if true;
allow write: if request.auth != null && request.auth.token.admin == true;
}
match /groups/{document=**} {
allow read: if true;
allow write: if request.auth != null && request.auth.token.admin == true;
}
match /meta/{document=**} {
allow read: if true;
allow write: if request.auth != null && request.auth.token.admin == true;
}
match /users/{userId} {
allow read: if request.auth != null && request.auth.uid == userId;
}
match /upload_queue/{document=**} {
allow read: if request.auth != null && request.auth.token.admin == true;
allow write: if request.auth != null && request.auth.token.admin == true;
}
match /upload_queue_backlog/{document=**} {
allow read: if request.auth != null && request.auth.token.admin == true;
allow write: if request.auth != null && request.auth.token.admin == true;
}
match /patchfile_queue/{document=**} {
allow read: if request.auth != null && request.auth.token.admin == true;
allow write: if request.auth != null && request.auth.token.admin == true;
}
match /patchfile_queue_failed/{document=**} {
allow read: if request.auth != null && request.auth.token.admin == true;
allow write: if request.auth != null && request.auth.token.admin == true;
}
}
}