⚡ Updated Firestore data rules
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
// Allow read/write access on all documents to any user signed in to the application
|
||||
service cloud.firestore {
|
||||
match /databases/{database}/documents {
|
||||
match /{document=**} {
|
||||
allow read, write: if request.auth.uid != null;
|
||||
allow read, write;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,6 @@ export const fb = {
|
||||
.delete()
|
||||
.catch(e => console.error("error deleting", dt, e)),
|
||||
writeSettings: async (setting, value) => {
|
||||
console.log(value);
|
||||
const st = {
|
||||
updatedOn: new Date(),
|
||||
author: fb.currentUser.uid,
|
||||
|
||||
Reference in New Issue
Block a user