title: Not able to access a firebase collection after publishing security rule
body: <p>I was trying to access data from Cloud Firestore, but the access is denied.</p>
  <p>My flutter code</p>
  <pre><code>FirebaseAuth _auth = FirebaseAuth.instance;
      final logineduser = _auth.currentUser!.uid;
      final QuerySnapshot result = await FirebaseFirestore.instance
          .collection('product_details').get();
  final List&lt;DocumentSnapshot&gt; documents = result.docs;
  print(documents[0]);
  </code></pre>
  <p>The Cloud Firestore Security rules</p>
  <pre><code>rule_version='2'
  service colud.firestore{
     match /databases/{database}/documents {
  
       match /user_details/{emailId}{
          allow read,write;
       }
  
       match /user_activities/{userId}{
          allow read,write;
       }
  
       match /product_details/{Id}{
          allow read,write;
       }
  
       match /purchase_details/{Id}{
          allow read,write;
       }
  
       match /{document=**}{
          allow read,write:if request.auth.uid !=null;
       }
    }
  }
  </code></pre>