/**
  * Lists all Items models.
  * @return mixed
  * @throws ForbiddenHttpException
  */
 public function actionIndex()
 {
     // Check RBAC Permission
     if ($this->userCanIndex()) {
         $searchModel = new ItemsSearch();
         $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
         return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
     } else {
         throw new ForbiddenHttpException();
     }
 }
 /**
  * Lists all Items models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new ItemsSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }