From 2d59b73f47050d81bbbd509f24aab9c2f3e8d6e1 Mon Sep 17 00:00:00 2001 From: "Rayyan (Rayy)" Date: Tue, 14 Nov 2023 14:23:46 +0000 Subject: [PATCH] Modify Firebase Rules to prevent conflict with web app --- firestore.rules | 7 +++++-- storage.rules | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/firestore.rules b/firestore.rules index 6316ef0..e3b1715 100644 --- a/firestore.rules +++ b/firestore.rules @@ -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, 12, 7); + //match /{document=**} { + //allow read, write: if request.time < timestamp.date(2023, 12, 7); + // } + match /movies/{document=**} { + allow read: if true; } } } \ No newline at end of file diff --git a/storage.rules b/storage.rules index f08744f..31b5e20 100644 --- a/storage.rules +++ b/storage.rules @@ -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; } } -} +} \ No newline at end of file