Can Firestore security rules manage security permissions across multiple groups? For example, suppose there are individual users Group1 and Group2.
Group1 {
groupId: string
groupMembers {
userId: string
}
}
Group2 {
groupId: string
groupMembers {
userId: string
}
}
Is it possible to manage chat permissions shared by two Groups?
Chat1 {
editerGroupIds: [groupId, groupId]
}
I thought it would be possible if I could loop the List but Firestore did not support it. Any ideas?