Is it possible to have a Firebase Storage rule that is similar to the get() function of Firestore?
Basically I would like to check the user document in Firestore to allow writes in Storage.
I guess working with claims would be the best solution, but I'm not sure I can use that.
I would like something like this:
allow create: if get(/databases/$(database)/documents/users/$(request.auth.uid)).data.canDoSomeStuff == true;