Enabling link in yii <p>My question is how to enable a particular link for multiple user class. Currently I am doing in the following way for one user class </p> <p>in layouts/main.php</p> <pre><code>array('label'=&gt;'Users', 'url'=&gt;array('/user/index'), 'visible'=&gt;Yii::app()-&gt;user-&gt;checkAccess('admin')) </code></pre> <p>But what if I want to allow another class called superadmin then how should I do it? I can't do it like this</p> <pre><code>array('label'=&gt;'Users', 'url'=&gt;array('/user/index'), 'visible'=&gt;Yii::app()-&gt;user-&gt;checkAccess('admin'), 'visible'=&gt;Yii::app()-&gt;user-&gt;checkAccess('superadmin')) </code></pre>