title: CheckAccess. Agile Web Application Development with Yii1.1
body: <p>I need some help with CheckAccess function. 
  I'm reading book <em>Agile Web Application Development with Yii1.1 and PHP5</em>, and came to <strong>page 212</strong>. On this page I've to added a "Create user" menu item. 
  I login with the user that is associated with the project (in Db table project_user_role) like a member, and members has operateion called '<em>createUser</em>'.   </p>
  
  <p>The problem is that I can't see the menu item which should be generated by the following code:   </p>
  
  <pre><code>if (Yii::app()-&gt;user-&gt;checkAccess('createUser', array('project' =&gt; $model))) {     
      $this-&gt;menu[] = array('label' =&gt; 'Add User To Project', 'url' =&gt; array('adduser', 'id' =&gt; $model-&gt;id));  
  }
  </code></pre>
  
  <p>Thanks</p>