title: CakePHP Multiple User Roles/PRO Membership Role
body: <p>I have a CakePHP app, and there are currently 2 user_type(s).</p>
  
  <ol>
  <li>admin (administrator)</li>
  <li>account (normal user)</li>
  </ol>
  
  <p>I am working on something where users can pay an extra fee, and it gives them access to more content and pages.  I was going to make a new user_type called PRO and use that, but the PRO members still need access to all the things people with the account user_type have access to.</p>
  
  <p>Basically, what is the easiest way to set something up where I can give users permissions to view certain things and pages using similar code to what I am currently using:</p>
  
  <p><code>&lt;?php if( $currentUser['user_type'] == 'account' ) { ?&gt;</code> and <code>&lt;?php } ?&gt;</code> for restricting content</p>
  
  <pre><code>if( $this-&gt;User['user_type'] == 'account')) {
  
              switch ($this-&gt;request-&gt;getParam('action')) {
                  case 'PAGE':
                      return true;
                  default:
                      return false;
                      break;
              }
          }
  </code></pre>
  
  <p>for controlling page access</p>
  
  <p>Also, I need an easy way to give users access via a frontend admin panel.  I currently use the below code, and I would need a way to adapt it to work for this new "PRO" option.</p>
  
  <pre><code>if( $user-&gt;user_type != 'admin' &amp;&amp; $currentUser['id'] = 1 )
                echo $this-&gt;Form-&gt;postLink(__('Make Admin'), ['action' =&gt; 'make_admin', $user-&gt;id], ['confirm' =&gt; __('Are you sure you want to make admin?', $user-&gt;name), 'class'=&gt;'btn btn-danger btn-md']);
              else 
                 echo $this-&gt;Form-&gt;postLink(__('Revoke Admin'), ['action' =&gt; 'revoke_admin', $user-&gt;id], ['confirm' =&gt; __('Are you sure you want to remove admin rights?', $user-&gt;name), 'class'=&gt;'btn btn-danger btn-md']);
  </code></pre>
  
  <p>I am very much a noob at cakephp, so any help is greatly appreciated.  I didn't make the base app, I hired a dev to do it, so I am learning cakephp so I can work on adapting the app to fit my needs better.  So far, this community has been very helpful and I hope I can continue to get everything working!</p>