2023-11-08 00:07:29 +11:00
|
|
|
rules_version = '2';
|
|
|
|
|
|
|
|
service cloud.firestore {
|
|
|
|
match /databases/{database}/documents {
|
|
|
|
|
|
|
|
// This rule allows anyone with your Firestore database reference to view, edit,
|
|
|
|
// and delete all data in your Firestore database. It is useful for getting
|
|
|
|
// started, but it is configured to expire after 30 days because it
|
|
|
|
// leaves your app open to attackers. At that time, all client
|
|
|
|
// requests to your Firestore database will be denied.
|
|
|
|
//
|
|
|
|
// Make sure to write security rules for your app before that time, or else
|
|
|
|
// all client requests to your Firestore database will be denied until you Update
|
|
|
|
// your rules
|
2023-11-15 01:23:46 +11:00
|
|
|
//match /{document=**} {
|
|
|
|
//allow read, write: if request.time < timestamp.date(2023, 12, 7);
|
|
|
|
// }
|
|
|
|
match /movies/{document=**} {
|
|
|
|
allow read: if true;
|
2023-11-08 00:07:29 +11:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|