Guest User

Untitled

a guest
Dec 13th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. {
  2. "rules":{
  3. "admins": {
  4. ".read": false,
  5. ".write": false
  6. },
  7. "draw": {
  8. ".read": "auth != null && root.child('admins').child(auth.token.email.replace('.', '*')).exists() && auth.token.email_verified == true",
  9. ".write": "auth != null"
  10. },
  11. "drawValidated":{
  12. ".read": "auth != null && root.child('admins').child(auth.token.email.replace('.', '*')).exists() && auth.token.email_verified == true",
  13. ".write": "auth != null && root.child('admins').child(auth.token.email.replace('.', '*')).exists() && auth.token.email_verified == true"
  14. },
  15. "drawShow":{
  16. ".read": true,
  17. ".write": "auth != null && root.child('admins').child(auth.token.email.replace('.', '*')).exists() && auth.token.email_verified == true"
  18. },
  19. "drawSaved":{
  20. "$userId":{
  21. ".read": "auth != null && $userId === auth.uid",
  22. ".write": "auth != null && root.child('admins').child(auth.token.email.replace('.', '*')).exists() && auth.token.email_verified == true"
  23. }
  24. }
  25. }
  26. }
Add Comment
Please, Sign In to add comment