0
Good morning, I’m having a question, I’m assembling an app where the person accesses it, login and password and then appears the home screen of the same. If the person has no record she will register through the app itself, but my concern is the following. I want to create a rule where only a certain user can create these users. ex: the school director creates the user based on the student’s data, ex: RA(STUDENT REGISTRATION), but wanted to know how do I make this rule, whether it is directly in the FIREBASE database on the web panel, or via app even on androidstudio, and depending on what would be the choice, how would do it ?
How did you structure the database? Can you post the structure here? So I can help you make the rules.
– Rosário Pereira Fernandes
{ "Rules": { "users": { "$uid": { ". read": "$uid === auth.uid", ". write": "$uid === auth.uid" } } } }
– sender rodrigues dos santos
How do you differentiate users? Do you have a field that indicates you are a director/student? If so, what is the field?
– Rosário Pereira Fernandes