I am trying to allow just one user with specific UID under authentication section to write to a document and rest to read from it.
I have tried nothing yet as I am not able to understand the concept behind it.
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if request.auth.uid != null;
}
}
}
I expect output to be complete Firestore rules I can use directly also an explanation of concept will be much appreciated.