-
Notifications
You must be signed in to change notification settings - Fork 5
/
firestore.rules
28 lines (28 loc) · 1.52 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
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /users/{userId} {
allow read, write, update: if request.auth != null && resource.data.user_uid == request.auth.uid;
}
match /settings/{id} {
allow create: if request.auth != null && request.resource.data.user_uid == request.auth.uid;
allow delete, update: if request.auth != null && resource.data.user_uid == request.auth.uid;
allow read: if request.auth != null && resource.data.user_uid == request.auth.uid;
}
match /standups/{standupId} {
allow create: if request.auth != null && request.resource.data.user_uid == request.auth.uid;
allow delete, update: if request.auth != null && resource.data.user_uid == request.auth.uid;
allow read: if request.auth != null && resource.data.user_uid == request.auth.uid;
}
match /tasks/{taskId} {
allow create: if request.auth != null && request.resource.data.user_uid == request.auth.uid;
allow delete, update: if request.auth != null && resource.data.user_uid == request.auth.uid;
allow read: if request.auth != null && resource.data.user_uid == request.auth.uid;
}
match /tracks/{trackId} {
allow create: if request.auth != null && request.resource.data.user_uid == request.auth.uid;
allow delete, update: if request.auth != null && resource.data.user_uid == request.auth.uid;
allow read: if request.auth != null && resource.data.user_uid == request.auth.uid;
}
}
}