Skip to content

Commit 0137911

Browse files
committed
Update Firestore rules to allow public reads of transcriptions and utterances
1 parent 732bb90 commit 0137911

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

firestore.rules

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,16 @@ service cloud.firestore {
8989
allow read, write: if request.auth.token.get("role", "user") == "admin"
9090
}
9191
}
92+
match /transcriptions/{tid} {
93+
// public, read-only
94+
allow read: if true
95+
allow write: if false
96+
97+
// public, read-only
98+
match /utterances/{uid} {
99+
allow read: if true
100+
allow write: if false
101+
}
102+
}
92103
}
93104
}

0 commit comments

Comments
 (0)