title: Function not found error: Name: [get]. in firestore security rules simulation
body: <pre><code>match /UserProfile {
      match /{uId}{
      allow get: if isUserLoggedIn() &amp;&amp; !isUserBlocked(uId);
    }
  </code></pre>
  <p>when i try to get data from UserProfile/{uId} using the above security rules it throws the following error in the firestore and in code it says insufficient permissions:</p>
  <pre><code>Error running simulation — Error: simulator.rules line [199], column [28]. Function not found error: Name: [get].
  </code></pre>
  <p>now the definition of above two function are here</p>
  <pre><code>function isUserLoggedIn(){
      return request.auth != null;
  }
  
  function isUserBlocked(uId){
      return (('blocked' in get(/databases/$(database)/documents/UserSettings/$(uId)).data) &amp;&amp; (request.auth.uid in get(/databases/$(database)/documents/UserSettings/$(uId)).data.blocked));
  }
  </code></pre>
  <p>the first function runs very well
  but the second one doesn't</p>
  <p>it throws that error</p>
  <p>and as of my knowledge the function is alright</p>
  <p>please help i have wasted a whole lot of time on this piddly problem</p>
  <h1>what i have tried</h1>
  <ol>
  <li>i read in one of the threads that it is a temporary problem
  but it is not like that. its been more than 48 hours now</li>
  <li>somewhere it was also mentioned that this is a bug only in simulator but the code will run smoothly and even this is not the case. in code the error is insufficient permissions as expected by me</li>
  <li>i have read the docs properly so my code is alright  have tested the get method in other rules and there it is working fine</li>
  </ol>
  <h1>thats it please help</h1>