Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "rules": {
- "stores": {
- ".read": "auth != null && (root.child('readUsers').hasChild(auth.uid) || root.child('readWriteUsers').hasChild(auth.uid))",
- ".write": "auth != null && root.child('readWriteUsers').hasChild(auth.uid)",
- "Assigned to" : {
- ".read": "auth != null && root.child('writeByAll').hasChild(auth.uid)",
- ".write": "auth != null && root.child('writeByAll').hasChild(auth.uid)",
- },
- "Status" : {
- ".read": "auth != null && root.child('writeByAll').hasChild(auth.uid)",
- ".write": "auth != null && root.child('writeByAll').hasChild(auth.uid)",
- },
- },
- "readUsers": {
- ".read": "auth != null && root.child('readUsers').hasChild(auth.uid)",
- ".write": false
- },
- "readWriteUsers": {
- ".read": "auth != null && root.child('readWriteUsers').hasChild(auth.uid)",
- ".write": false
- },
- "writeByAll": {
- ".read": "auth != null && root.child('writeByAll').hasChild(auth.uid)",
- ".write": false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement