Skip to content

Instantly share code, notes, and snippets.

@PimDeWitte
Created September 22, 2016 15:53
Show Gist options
  • Save PimDeWitte/b863a8ba38598f40cfa0770114cb775e to your computer and use it in GitHub Desktop.
Save PimDeWitte/b863a8ba38598f40cfa0770114cb775e to your computer and use it in GitHub Desktop.
{
"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