Answer the question
In order to leave comments, you need to log in
How to create admin user etc in firebase?
I don’t quite understand how to make users with different rights, here are the rules:
{
"rules": {
"authentication": {
"users": {
"$uid": {
".read": "auth.uid == $uid || root.child('authentication').child('users').child('auth.uid').child('isAdmin').val() == true",
".write": "newData.parent().parent().parent().child('authentication').child('users').child('auth.uid').child('isAdmin').val() == true",
".indexOn": [
"email"
]
}
}
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question