mirror of
https://github.com/hmalik144/Driver.git
synced 2025-12-10 02:45:20 +00:00
18 lines
578 B
JSON
18 lines
578 B
JSON
{
|
|
"rules": {
|
|
"user": {
|
|
".read": "root.child('user').child(auth.uid).child('role').val() == 'admin'",
|
|
"$user_id": {
|
|
".write": "$user_id === auth.uid",
|
|
".read": "$user_id === auth.uid",
|
|
"driver_number": {
|
|
".write": "root.child('user').child(auth.uid).child('role').val() == 'admin'",
|
|
".read": "root.child('user').child(auth.uid).child('role').val() == 'admin'"
|
|
},
|
|
"approvalsObject": {
|
|
".write": "root.child('user').child(auth.uid).child('role').val() == 'admin'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |