php - Yii2 accessControl force redirect to lgoin whitout behaviors -


i've created small module week ago, need work module when open module link have got redirect login page, module no have behaviors defined, if don't mistake let full access @ user, test i've set on main module controller behavior

public function behaviors(){     return [         'access' => [             'class' => accesscontrol::classname(),             'rules' => [                 [                     'actions' => ['*'],                     'allow' => true,                 ]             ]         ]     ]; } 

but application redirect me login page. how can allow access users? thanks

if don't need access control, should remove behavior.

or use :

public function behaviors(){     return [         'access' => [             'class' => accesscontrol::classname(),             'rules' => [                 [                     'allow' => true,                 ]             ]         ]     ]; } 

about accessrule::$actions :

list of action ids rule applies to. comparison case-sensitive. if not set or empty, means rule applies actions.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -