شما باید deny رو آخر قرار بدید مثلا
public function accessRules() {
return array(
array('allow', // allow all users to perform 'index' and 'view' actions
'actions'=>array('captcha','adminArea'),
'users'=>array('*'),
),
array('allow', // allow all users to perform 'index' and 'view' actions
'actions'=>array('changePass','increaseBalance'),
'users'=>array('@'),
),
array('allow', // allow authenticated user to perform 'create' and 'update' actions
'actions'=>array('sabtName','action2','action3'),
'users'=>array('?'),
),
array('allow', // allow admin user to perform 'admin' and 'delete' actions
'actions'=>array('action4','action5''),
'users'=>array('@'),
'expression'=>'Yii::app()->user->AyaAdminAst()',
),
array('allow', // allow all users to perform 'index' and 'view' actions
'actions'=>array('vorod','sabtenam'),
'users'=>array('?'),
),
array('deny', // deny all users
'users'=>array('*'),
'deniedCallback' => array($this, 'redirecting'),
),
);
}
که در این مثلا تکر کاربر اجازه دسترسی نداشت به یک صفحه دیکه هدایت میشه نمومش رو میتونید تو وب سایت NazarFa.ir مشاهده کنید