title: Insufficient permissions clientside while simulator works
body: <p>I have the following firestore rules setup where I want to let anyone create a document in the suggestions collection, but only a certain user can update it. The rules look like this:</p>
  
  <pre><code>  service cloud.firestore {
      match /databases/{database}/documents {
        match /suggestions/{sugg} {
          allow create, read;
          allow update: if request.auth.uid == 'abc123';
        }
      }
    }
  </code></pre>
  
  <p>When I test this in the provided simulator, it works fine; however after waiting 30 minutes I test in my deployed app and I get the error:</p>
  
  <blockquote>
    <p>Error: Missing or insufficient permissions.</p>
  </blockquote>
  
  <p>In my app I'm doing an <code>add()</code> call on the suggestions collection. So in my rules where I specify <code>allow create</code>, that should be sufficient. I added <code>read</code> in case the returned document would count as a read.</p>
  
  <p>Client: (AngularFire)</p>
  
  <pre><code>this.afs.collection('suggestions').add(sugg).then(() =&gt; {
    this.submitted = true;
  }, err =&gt; console.error('Firebase error:', err));
  </code></pre>