-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfirestore.rules
44 lines (41 loc) · 983 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
38
39
40
41
42
43
44
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
match /song/{eventId} {
allow read;
allow update: if (request.resource.data.diff(resource.data).affectedKeys().hasOnly(['imageLinks']));
}
match /emol/{emolId} {
allow read;
}
match /hist/{eventId} {
allow read;
match /songs/{songId} {
allow read;
allow update: if (request.resource.data.diff(resource.data).affectedKeys().hasOnly(['b']));
}
match /counts/{songId=**} {
allow read;
}
}
match /feedback/{feedbackId=**} {
allow write;
}
match /vote/{voteId=**} {
allow read, write;
}
match /yo/{yoId=**} {
allow read, write;
}
match /cvote/{animeId=**} {
allow read, write;
}
// スケジュール欄
match /table/{eventId=**} {
allow read, write;
}
}
}