Certainly! I can help you understand how to use the get()
function in Firestore security rules to make permissions dependent on data within another collection. Although I don't have the ability to share photos directly, I can guide you through the process step by step.
Let's assume you have a Firestore database structure as follows:
- parentCollection (collection)
- documentA (document)
- subCollectionX (collection)
- subDocumentX (document)
- documentB (document)