Skip to content

Commit 8b4a62f

Browse files
authored
Update database.rules.json
adjust db rules to allow completeness tutorial
1 parent 3c660ed commit 8b4a62f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

firebase/database.rules.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
||
1616
(auth != null && query.orderByChild == 'status' && query.equalTo == 'build_area_tutorial' && query.limitToFirst == 1)
1717
||
18+
(auth != null && query.orderByChild == 'status' && query.equalTo == 'completeness_tutorial' && query.limitToFirst == 1)
19+
||
1820
// only team members can query by their own teamId
1921
(auth != null && query.orderByChild == 'teamId' &&
2022
query.equalTo == root.child('/v2/users/'+auth.uid+'/teamId').val())
@@ -137,4 +139,4 @@
137139
}
138140
}
139141
}
140-
}
142+
}

0 commit comments

Comments
 (0)