From ae993956eea89d7841516c5344edf1d60ef0bd55 Mon Sep 17 00:00:00 2001 From: Kavalar Date: Fri, 24 May 2024 20:25:02 +0300 Subject: [PATCH] company controller fix --- .../company/controllers/CompanyController.php | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/frontend/modules/company/controllers/CompanyController.php b/frontend/modules/company/controllers/CompanyController.php index 580f736..0d6b1a6 100644 --- a/frontend/modules/company/controllers/CompanyController.php +++ b/frontend/modules/company/controllers/CompanyController.php @@ -40,29 +40,29 @@ class CompanyController extends Controller /** * @inheritDoc */ - public function behaviors() - { - return array_merge( - parent::behaviors(), - [ - 'verbs' => [ - 'class' => VerbFilter::className(), - 'actions' => [ - 'delete' => ['POST'], - ], - ], - 'access' => [ - 'class' => \yii\filters\AccessControl::className(), - 'rules' => [ - [ - 'allow' => true, - 'roles' => ['@'], - ], - ], - ], - ] - ); - } +// public function behaviors() +// { +// return array_merge( +// parent::behaviors(), +// [ +// 'verbs' => [ +// 'class' => VerbFilter::className(), +// 'actions' => [ +// 'delete' => ['POST'], +// ], +// ], +// 'access' => [ +// 'class' => \yii\filters\AccessControl::className(), +// 'rules' => [ +// [ +// 'allow' => true, +// 'roles' => ['@'], +// ], +// ], +// ], +// ] +// ); +// } /** * Lists all Company models.