I am trying to restrict firebase storage based on user role.
Database:
users
<uid>
admin=false
... ... ...
I am trying to use the following kind of rule in firebase storage:
root.child('users').child(auth.uid).child('user').child('admin').val() == true
I am getting access denied after adding this to the write rule.
Thanks.