title: Yii2: Hide search results based on permission
body: <p>In my table I have:</p>
  
  <pre><code>PRODUCT
  id_product
  name
  status
  </code></pre>
  
  <p>Where the status assumes the following values:</p>
  
  <pre><code>1 (Active)
  2 (Inactive)
  3 (Archived)
  </code></pre>
  
  <p>In the Product index view, I want the user to see certain statuses based on the permissions. Example:</p>
  
  <ul>
  <li>Administrator sees records with statuses 1, 2, and 3.</li>
  <li>Moderator views: 1 and 2</li>
  <li>User views: 1</li>
  </ul>
  
  <p>How can I do this? What alternatives do I have?</p>