title: Firebase Rules not working: FirebaseError: Missing or insufficient permissions
body: <p>My Firebase Rules are not working properly. I am able to read data, however am unable to create!</p>
  <pre><code>rules_version = '2';
  service cloud.firestore {
    match /databases/{database}/documents {
      // Allow public read access, but only content owners can write
      match /{document=**} {
        allow read: if true
          allow create: if request.auth.uid == request.resource.data.author_id;
        allow update, delete: if request.auth.uid == resource.data.author_id;
      }
    }
  }
  </code></pre>