Modify Firebase rules to avoid conflict

This commit is contained in:
Ray 2023-11-07 14:31:34 +00:00 committed by GitHub
parent ad6e072e0e
commit 53f27e5229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -12,8 +12,11 @@ service cloud.firestore {
// 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
match /{document=**} {
allow read, write: if request.time < timestamp.date(2023, 9, 28);
//match /{document=**} {
//allow read, write: if request.time < timestamp.date(2023, 9, 28);
// }
match /books/{document=**} {
allow read: if true;
}
}
}

View File

@ -6,7 +6,7 @@ rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if false;
allow read, write: if true;
}
}
}