Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. {
  2. "rules": {
  3. ".read": "((auth != null && auth.token != null) && root.child('users').child(auth.uid).child('role').val() == 'congressManager')",
  4. ".write": "((auth != null && auth.token != null) && root.child('users').child(auth.uid).child('role').val() == 'congressManager')",
  5. "actions": {
  6. "$id": {
  7. ".read": "(auth != null && auth.token != null)",
  8. ".write": "((auth != null && auth.token != null) && root.child('users').child(auth.uid).child('role').val() == 'congressManager')"
  9. }
  10. },
  11. "boothAreas": {
  12. "$id": {
  13. ".read": "(auth != null && auth.token != null)",
  14. ".write": "((auth != null && auth.token != null) && root.child('users').child(auth.uid).child('role').val() == 'congressManager')"
  15. }
  16. },
  17. "congressDays": {
  18. "$id": {
  19. ".read": "(auth != null && auth.token != null)",
  20. ".write": "((auth != null && auth.token != null) && root.child('users').child(auth.uid).child('role').val() == 'congressManager')"
  21. }
  22. },
  23. "congresses": {
  24. "$id": {
  25. ".read": "(auth != null && auth.token != null)",
  26. ".write": "((auth != null && auth.token != null) && root.child('users').child(auth.uid).child('role').val() == 'congressManager')"
  27. }
  28. },
  29. "conversations": {
  30. "$id": {
  31. ".read": "(auth != null && auth.token != null)",
  32. ".write": "(auth != null && auth.token != null)"
  33. }
  34. },
  35. "inprogressConversations": {
  36. "$id": {
  37. ".read": "(auth != null && auth.token != null)",
  38. ".write": "(auth != null && auth.token != null)"
  39. }
  40. },
  41. "kpiSettings": {
  42. "$id": {
  43. ".read": "(auth != null && auth.token != null)",
  44. ".write": "((auth != null && auth.token != null) && root.child('users').child(auth.uid).child('role').val() == 'congressManager')"
  45. }
  46. },
  47. "materials": {
  48. "$id": {
  49. ".read": "(auth != null && auth.token != null)",
  50. ".write": "((auth != null && auth.token != null) && root.child('users').child(auth.uid).child('role').val() == 'congressManager')"
  51. }
  52. },
  53. "participants": {
  54. "$id": {
  55. ".read": "(auth != null && auth.token != null)",
  56. ".write": "((auth != null && auth.token != null) && root.child('users').child(auth.uid).child('role').val() == 'congressManager')"
  57. }
  58. },
  59. "products": {
  60. "$id": {
  61. ".read": "(auth != null && auth.token != null)",
  62. ".write": "((auth != null && auth.token != null) && root.child('users').child(auth.uid).child('role').val() == 'congressManager')"
  63. }
  64. },
  65. "surveyQuestions": {
  66. "$id": {
  67. ".read": "(auth != null && auth.token != null)",
  68. ".write": "((auth != null && auth.token != null) && root.child('users').child(auth.uid).child('role').val() == 'congressManager')"
  69. }
  70. },
  71. "surveySubmittions": {
  72. "$id": {
  73. ".read": "(auth != null && auth.token != null)",
  74. ".write": "(auth != null && auth.token != null)"
  75. }
  76. },
  77. "userRole": {
  78. "$id": {
  79. ".read": "(auth != null && auth.token != null)",
  80. ".write": "((auth != null && auth.token != null) && root.child('users').child(auth.uid).child('role').val() == 'congressManager')"
  81. }
  82. },
  83. "surveys": {
  84. "$id": {
  85. ".read": "((auth != null && auth.token != null) && (auth != null && auth.token != null))",
  86. ".write": "(((auth != null && auth.token != null) && root.child('users').child(auth.uid).child('role').val() == 'congressManager') && ((auth != null && auth.token != null) && root.child('users').child(auth.uid).child('role').val() == 'congressManager'))"
  87. }
  88. },
  89. "users": {
  90. "$uid": {
  91. ".read": "(auth != null && auth.token != null)",
  92. ".write": "((auth != null && auth.token != null) && root.child('users').child(auth.uid).child('role').val() == 'congressManager')"
  93. }
  94. }
  95. }
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement