mirror of
https://github.com/tappollo/booster.git
synced 2026-04-30 18:42:39 +08:00
chore: add login with facebook
This commit is contained in:
@@ -20,17 +20,5 @@ service cloud.firestore {
|
||||
match /readonly/{userId} {
|
||||
allow read: if isMe(userId)
|
||||
}
|
||||
|
||||
|
||||
match /conversations/{conversationId} {
|
||||
function isListedInChat() {
|
||||
return userLoggedIn()
|
||||
&& request.auth.uid in get(/databases/$(database)/documents/conversations/$(conversationId)).data.userIds
|
||||
}
|
||||
allow read: if userLoggedIn() && request.auth.uid in resource.data.userIds
|
||||
match /messages/{messageId} {
|
||||
allow read, create: if isListedInChat()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user