I'm developing a small admin panel on yii2. I use rbac and yii2-admin. There are a lot of identical requests in the debugger. These are:
SELECT * FROM `auth_assignment` WHERE` user_id` = '5'
I do not make queries to the tables of the rbac.
My action:
public function actionProduction(){
$searchModel = new OrderSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
$dataProvider->query->andWhere(['order_status' => 'production', 'production_user' => null]);
//$active_order = $this->getActiveOrder(Yii::$app->user->getId(), Yii::$app->controller->action->id);
return $this->render('userGrid', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
//'active_order' => $active_order,
'to' => $to = 'packing'
]);
}