title: RBAC in Yii, Guest not authorized
body: <p>Im trying to implement RBAC in Yii (using the rights module).</p>
  
  <p>When trying to authorize an unauthenticated user (Guest), <code>CWebUser</code> calls <code>CDbAuthManager</code>:</p>
  
  <pre><code>$access=Yii::app()-&gt;getAuthManager()-&gt;checkAccess($operation,$this-&gt;getId(),$params);
  </code></pre>
  
  <p><code>CDbAuthManager</code> then tries to get the authassignments of the user</p>
  
  <pre><code>$assignments=$this-&gt;getAuthAssignments($userId);
  </code></pre>
  
  <p>The problem is, because the user is a Guest, <code>$userId</code> is <code>null</code>, and <code>$assignments</code> is an empty array. Therefore i can not i cannot authorize a guest user to any action (unless declaring allowedActions())</p>
  
  <p>What am i doing wrong?</p>