yii2tech\admin\CrudController::accessRules PHP Метод

accessRules() публичный Метод

This is method is a shortcut, allowing quick adjustment of the [[AccessControl]] filter attached at CrudController::behaviors. Be careful in case you override CrudController::behaviors method, since it may loose configuration provided by this method.
public accessRules ( ) : array
Результат array list of access rules. See [[AccessControl::rules]] for details about rule specification.
    public function accessRules()
    {
        return [['allow' => true, 'roles' => ['@']]];
    }