title: dynamically change the filter expression
body: <p>I have an array of records. This array will display different records based on the user's permissions. </p>
  
  <p>Thus I have to use a different filter based upon the user. How do i create such an expression which takes a variable function based on the user's permission - </p>
  
  <pre><code>&lt;div ng-repeat="r in records | filter:{isVisible:true}"
  </code></pre>
  
  <p>The above has a filter expression {isVisible:true}. I want to dynamically assign a different filter expression based on the user. So user2 will have {isCommon: 'M2'}. </p>