-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirestore.rules
24 lines (23 loc) · 886 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
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /problems/{problem} {
allow read;
// allow read: if problem == 'sample'
// allow read: if request.auth.token.email == 'ansh.tiwatne@gmail.com' || request.auth.token.email == 'aneesh1701@gmail.com' || request.auth.token.email == 'neofernandes2006@gmail.com';
// allow read: if timestamp.date(2023, 11, 24) < request.time && request.time < timestamp.date(2023, 11, 27);
}
match /users/{userID} {
allow read;
allow write: if request.auth.uid == userID;
}
match /mailList/subscribers {
allow update;
// allow update: if (
// request.resource.data.keys().hasOnly(['emails']) &&
// request.resource.data.emails is list &&
// request.resource.data.emails.size() == resource.data.emails.size() + 1
// );
}
}
}