I have a set of rules in Firestore.
function enoughDownloadsLeft() { return get(/databases/$(database)/documents/customers/$(request.auth.uid)).data.avail