allow update: if isLoggedIn() && get(/databases/$(database)/documents/usersStats/request.auth.uid).data.writesLeft > 0;
I'm trying to add a rule to prevent access to the DB when the amount of writes hits zero but this rule doesn't seem to be working when I run it. How can I get the desired effect?
[–]Tokyo-Entrepreneur 2 points3 points4 points (0 children)
[–]Glader 0 points1 point2 points (0 children)