HELP: Firebase rules not implementing correctly | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

HELP: Firebase rules not implementing correctly

I have a newsletter section on my website. I have a Firebase dB connected to that. My rules are the allow read: if false; allow get: if true; allow list: if false; allow update:if false; allow delete: if false; allow create: if true; This states that the user can do nothing but CREATE a document. They should be able to create a document, but the permission is denied when I click the submit button to create a document. Is there any other permission I have to give? I have another question as well, why am I getting random reads on my dB when I’m the only one who can read it?

25th Sep 2020, 3:11 PM
Coder
Coder - avatar
5 Answers
+ 3
rudolph flash so if I wanted the user to not read and only create I would put allow read if false, and allow create?
26th Sep 2020, 2:28 PM
Coder
Coder - avatar
+ 2
if i remember correctly, the rule is "write" not "create" which method are you using to get all data? if you log in console, is all data shown?
26th Sep 2020, 3:27 AM
Gordon
Gordon - avatar
+ 2
i have solved the question! Thanks for your help rudolph flash Gordon my documment path was incorrect 😤
26th Sep 2020, 5:39 PM
Coder
Coder - avatar
+ 1
bobbie Gordon amit Calviղ Mitali Kelvin Paul If any of you have an answer it will be highly appreciated 👍 Need a solution urgently 😓
26th Sep 2020, 3:12 AM
Coder
Coder - avatar
0
rudolph flash okay let me try it
26th Sep 2020, 4:51 PM
Coder
Coder - avatar