I have the following data structures in Firebase
Firebase Database
House/(id)/Viewers/(UID)/{
startdate = “Dec 1, 2019”
endData = “Dec 8, 2019”
}
Firebase Storage
House/(id)/SensitiveImages/sensitiveImage.png
I want to write a rule in Firebase storage that only allows access to the SensitiveImages folder if the users UID is inside of the list of Viewers and the current time is between the startDate and endDate. However, there is no way to access this information from inside the Firebase Storage rules. How can I do this?