FireBase rule newData with uid -
how can use unique id of new data in rule newdata?
data structure:
i want disallow write users 1 sendername in ban_users, cannot newdata sendername:
newdata('sendername').val(); //not working newdata('$message_id/sendername').val(); //also not working("$message_id": {})
to disallow writes messages/main/$id
, try following write rule:
!root.child('chat/ban_users').haschild(newdata.child('sendername').val())
Comments
Post a Comment