Updated Firestore data rules

This commit is contained in:
Liyas Thomas
2020-01-22 09:48:52 +05:30
parent a7cd6395b7
commit bf686736f8
2 changed files with 1 additions and 3 deletions

View File

@@ -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;
}
}
}

View File

@@ -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,