I would want to be able to differentiate a get()
call in my app from the others.
In Security Rules, I've written in the read
rule:
request.resource.data.sign_look == true
So I would want to be able to write a get
call sending the true boolean sign_look
in order to allow it.
Is it possible? I know it's easy to do with rules like write
since indeed there are data in the request, but such data don't seem to be present in get
calls.
There is no way to pass an arbitrary parameter to security rules.
The two options you have:
Also see: