company controller fix

This commit is contained in:
Kavalar 2024-05-24 20:25:02 +03:00
parent 0d79a7df34
commit ae993956ee

View File

@ -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.