We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7732bc commit fa4e0daCopy full SHA for fa4e0da
database.rules.json
@@ -29,7 +29,7 @@
29
"$draft": {
30
"$trade": {
31
".write": "root.child('drafts').child($draft).child('teams').child(auth.uid).exists()",
32
- ".read": "data.child('receivingTeam').val() === auth.uid || data.child('givingTeam').val() === auth.uid"
+ ".read": "data.child('receivingTeam').val() === auth.uid || data.child('givingTeam').val() === auth.uid || data.child('status').val() === 'ACCEPTED'"
33
}
34
35
},
0 commit comments