bolt icon indicating copy to clipboard operation
bolt copied to clipboard

Firebase Rules based on other table

Open hamdallah90 opened this issue 6 years ago • 1 comments

Hello,

I have this structure,

image

So i have here usertypes and ever user have a user type.

image

So what is the best way to do it, and when access to /Events this will check the user type and get the permissions and then check the read

Thanks

hamdallah90 avatar May 11 '18 08:05 hamdallah90

root.child('/users' + uid).userType.val() == type

dan-leech avatar May 12 '18 04:05 dan-leech