-
Notifications
You must be signed in to change notification settings - Fork 125
/
firestore.rules
43 lines (29 loc) · 1.1 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
// Deny read/write access to all users under any conditions
service cloud.firestore {
match /databases/{database}/documents {
match /projects/{project} {
allow read, write, list: if request.auth.uid == resource.data.owner;
allow create: if request.auth.uid != null;
// match /apps/{app} {
// allow read, write, list: if request.auth.uid == resource.data.owner;
// allow create: if request.auth.uid != null;
// }
}
match /apps/{project} {
allow read, write, list: if request.auth.uid == resource.data.owner;
allow create: if request.auth.uid != null;
}
match /models/{project} {
allow read, write, list: if request.auth.uid == resource.data.owner;
allow create: if request.auth.uid != null;
}
match /fields/{project} {
allow read, write, list: if request.auth.uid == resource.data.owner;
allow create: if request.auth.uid != null;
}
match /relationships/{project} {
allow read, write, list: if request.auth.uid == resource.data.owner;
allow create: if request.auth.uid != null;
}
}
}