Skip to content

Commit c25c018

Browse files
authored
Merge pull request #1834 from Mephistic/update-rules
Update Firestore Rules for Transcriptions
2 parents 732bb90 + 0137911 commit c25c018

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)