0

According to what I've read, when a function runs via the server, all Firestore rules are ignored. How can I avoid this behavior?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Andrey Solera
  • 2,311
  • 2
  • 26
  • 51

1 Answers1

5

Cloud Functions use the Admin SDK to access Firestore, which runs with administrative privileges and always bypasses security rules. There is (currently) no way to change this behavior.

Also see:

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807