FireBase rule newData with uid -


how can use unique id of new data in rule newdata?

data structure: enter image description here

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

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -