⚡ 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 {
|
service cloud.firestore {
|
||||||
match /databases/{database}/documents {
|
match /databases/{database}/documents {
|
||||||
match /{document=**} {
|
match /{document=**} {
|
||||||
allow read, write: if request.auth.uid != null;
|
allow read, write;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ export const fb = {
|
|||||||
.delete()
|
.delete()
|
||||||
.catch(e => console.error("error deleting", dt, e)),
|
.catch(e => console.error("error deleting", dt, e)),
|
||||||
writeSettings: async (setting, value) => {
|
writeSettings: async (setting, value) => {
|
||||||
console.log(value);
|
|
||||||
const st = {
|
const st = {
|
||||||
updatedOn: new Date(),
|
updatedOn: new Date(),
|
||||||
author: fb.currentUser.uid,
|
author: fb.currentUser.uid,
|
||||||
|
|||||||
Reference in New Issue
Block a user