Skip to content

Commit 5692e73

Browse files
authored
v4.31.8
Non-admin email users saw an empty movement list because the createdBy_orderKey field was not indexed in Firebase rules. The modular SDK migration exposed this latent issue.
2 parents 883eb4f + 05d0059 commit 5692e73

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

firebase-rules-template.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
".indexOn": [
66
"dateTime",
77
"negativeTimestamp",
8-
"immatriculation"
8+
"immatriculation",
9+
"createdBy_orderKey"
910
],
1011
"$departure_id": {
1112
".write": "auth !== null && (!root.child('settings/lockDate').exists() || (!data.exists() && newData.exists() && newData.child('negativeTimestamp').val() * -1 > root.child('settings/lockDate').val() + 1000 * 60 * 60 * 24) || (data.exists() && !newData.exists() && data.child('negativeTimestamp').val() * -1 > root.child('settings/lockDate').val() + 1000 * 60 * 60 * 24) || (data.exists() && newData.exists() && data.child('negativeTimestamp').val() * -1 > root.child('settings/lockDate').val() + 1000 * 60 * 60 * 24 && newData.child('negativeTimestamp').val() * -1 > root.child('settings/lockDate').val() + 1000 * 60 * 60 * 24))",
@@ -101,7 +102,8 @@
101102
".indexOn": [
102103
"dateTime",
103104
"negativeTimestamp",
104-
"immatriculation"
105+
"immatriculation",
106+
"createdBy_orderKey"
105107
],
106108
"$arrival_id": {
107109
".write": "auth !== null && (!root.child('settings/lockDate').exists() || (!data.exists() && newData.exists() && newData.child('negativeTimestamp').val() * -1 > root.child('settings/lockDate').val() + 1000 * 60 * 60 * 24) || (data.exists() && !newData.exists() && data.child('negativeTimestamp').val() * -1 > root.child('settings/lockDate').val() + 1000 * 60 * 60 * 24) || (data.exists() && newData.exists() && data.child('negativeTimestamp').val() * -1 > root.child('settings/lockDate').val() + 1000 * 60 * 60 * 24 && newData.child('negativeTimestamp').val() * -1 > root.child('settings/lockDate').val() + 1000 * 60 * 60 * 24))",

0 commit comments

Comments
 (0)