Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
56
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.  
  4. "stores": {
  5. ".read": "auth != null && (root.child('readUsers').hasChild(auth.uid) || root.child('readWriteUsers').hasChild(auth.uid))",
  6. ".write": "auth != null && root.child('readWriteUsers').hasChild(auth.uid)",
  7.  
  8. "Assigned to" : {
  9. ".read": "auth != null && root.child('writeByAll').hasChild(auth.uid)",
  10. ".write": "auth != null && root.child('writeByAll').hasChild(auth.uid)",
  11. },
  12.  
  13. "Status" : {
  14. ".read": "auth != null && root.child('writeByAll').hasChild(auth.uid)",
  15. ".write": "auth != null && root.child('writeByAll').hasChild(auth.uid)",
  16. },
  17. },
  18.  
  19.  
  20. "readUsers": {
  21. ".read": "auth != null && root.child('readUsers').hasChild(auth.uid)",
  22. ".write": false
  23. },
  24.  
  25.  
  26. "readWriteUsers": {
  27. ".read": "auth != null && root.child('readWriteUsers').hasChild(auth.uid)",
  28. ".write": false
  29. },
  30.  
  31. "writeByAll": {
  32. ".read": "auth != null && root.child('writeByAll').hasChild(auth.uid)",
  33. ".write": false
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement