I have 3 users which is for admin, manager and user. How can i create a role based function in firebase? Where admin can view, write certain page, manager can read, write, edit, while user can only read? on my database firebase (realtime) i changed to this rules:-
{
"rules": {
"users": {
"$uid": {
".read": "$uid === auth.uid",
".write": "$uid === auth.uid"
}
}
}
}
I'm stuck with this. i managed to create an account but its not restrict to pages. how can i change it? Please help me