Skip to content

Commit fa4e0da

Browse files
committed
Fix trade read rules to allow for completed trades to be seen by all
1 parent f7732bc commit fa4e0da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database.rules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"$draft": {
3030
"$trade": {
3131
".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"
32+
".read": "data.child('receivingTeam').val() === auth.uid || data.child('givingTeam').val() === auth.uid || data.child('status').val() === 'ACCEPTED'"
3333
}
3434
}
3535
},

0 commit comments

Comments
 (0)