Created
September 22, 2016 15:53
-
-
Save PimDeWitte/b863a8ba38598f40cfa0770114cb775e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rules": { | |
".read": false, | |
".write": "auth != null", | |
"groups" : { | |
".write": false, | |
".read" : true, | |
"$project_id" : { | |
"$group_id" : { | |
"completedCount" : { | |
".write": "auth != null", | |
} | |
}, | |
".indexOn": ["distributedCount", "completedCount"] | |
} | |
}, | |
"imports" : { | |
".read" : true, | |
".write" : true | |
}, | |
"projects" : { | |
".write": false, | |
".read" : true, | |
}, | |
"results" : { | |
".write": false, | |
".read" : true, | |
"$task_id" : { | |
"$user_id" : { | |
".write": "auth != null && auth.uid == $user_id" | |
} | |
} | |
}, | |
"users": { | |
"$uid": { | |
".read": "auth != null && auth.uid == $uid", | |
".write": "auth != null && auth.uid == $uid", | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment