Код: Выделить всё
public function accessRules()
{
return array(
array( 'allow',
'actions' => array('index'),
'expression' => 'Yii::app()->user->isAdmin == TRUE',
),
array('deny',
'actions' => array('index'),
'users' => array('*')),
);
}