Answer the question
In order to leave comments, you need to log in
Why does yii kick out a user with the appropriate role in allow from the admin panel?
Good afternoon, according to Makarov's recipe, I completed yiiframework.ru/doc/cookbook/ru/access.rbac.file I
just replaced administrator, moderator .. in auth.php , everything except guest with integer indexes.
if(Yii::app()->user->checkAccess('3')){
echo "hello, I'm administrator";
}
return array(
array('allow',
'actions'=>array('create, update, delete'),
'roles'=>array('3'),
),
array('deny',
'users'=>array('*'),
),
);
array('deny',
'users'=>array('*'),
),
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question