FirebaseExtended / bolt

Bolt Compiler (Firebase Security and Modeling)
Apache License 2.0
896 stars 108 forks source link

Firebase Rules based on other table #229

Open hamdallah90 opened 6 years ago

hamdallah90 commented 6 years ago

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

dan-leech commented 6 years ago

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