Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "rules": {
- "Users": {
- "$user_id": {
- // grants write access to the owner of this user account
- // whose uid must exactly match the key ($user_id)
- ".write": "$user_id === auth.uid"
- }
- }
- "BUSINESS NAME HERE": {
- ".write": "root.child('Users').child(auth.uid).child('BUSINESS NAME HERE').child('Permissions').val() === "MODERATOR""
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement