Skip to content

Commit ff7e9ec

Browse files
committed
chore: stricter rules playground
1 parent b1f0f72 commit ff7e9ec

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

packages/nuxt/playground/firestore.rules

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ service cloud.firestore {
33
match /databases/{database}/documents {
44
match /todos/{todoId} {
55
allow read, write;
6+
}
7+
match /tweets/{todoId} {
8+
allow read, write;
9+
}
10+
match /users/{todoId} {
11+
allow read: if request.auth.uid != null;
12+
allow write: if false;
613
}
714
match /demo-todos/{todoId} {
815
allow read, write;
@@ -28,18 +35,19 @@ service cloud.firestore {
2835
match /configs/jORwjIykFo2NmkdzTkhU {
2936
allow read, write;
3037
}
38+
3139
match /secrets/{userId} {
3240
allow read, write: if request.auth.uid == userId;
3341
}
34-
match /bug-reports/{issue}/demo-files/{id} {
35-
allow read, write;
36-
}
37-
match /bug-reports/{issue}/demo/{id} {
38-
allow read, write;
42+
43+
match /bug-reports/{issueId}/objects/{documentId} {
44+
allow read, update;
45+
allow create: if false;
46+
allow delete: if false;
3947
}
48+
4049
match /{document=**} {
41-
allow read;
42-
allow write: if false;
50+
allow read, write: if false;
4351
}
4452
}
4553
}

0 commit comments

Comments
 (0)