title: Error: permission_denied at /categories: Client doesn't have permission to access the desired data
body: <p>I have an assignment given by some recruiter and here I need to build an e-commerce site using react redux, and firebase.</p>
  
  <p>The front end part is done but not able to get the data from firebase.
  here is my rules Tab content how can I modify it.</p>
  
  <pre><code>this.props.firebase.categories().on('value', snapshot =&gt; {
          // Not coming here.
              console.log(snapshot, snapshot.val)
          }, (error) =&gt; {
          // Error shows here
              console.log(error);
          });
  
  
  // Content of Rules tab
  service cloud.firestore {
    match /databases/{database}/documents {
      match /{document=**} {
        allow read, write: if true;
      }
    }
  }
  </code></pre>
  
  <p>Followed this tutorial:
  <a href="https://www.robinwieruch.de/complete-firebase-authentication-react-tutorial/#react-application-setup" rel="nofollow noreferrer">https://www.robinwieruch.de/complete-firebase-authentication-react-tutorial/#react-application-setup</a></p>