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 * @inheritDoc
*/ */
public function behaviors() // public function behaviors()
{ // {
return array_merge( // return array_merge(
parent::behaviors(), // parent::behaviors(),
[ // [
'verbs' => [ // 'verbs' => [
'class' => VerbFilter::className(), // 'class' => VerbFilter::className(),
'actions' => [ // 'actions' => [
'delete' => ['POST'], // 'delete' => ['POST'],
], // ],
], // ],
'access' => [ // 'access' => [
'class' => \yii\filters\AccessControl::className(), // 'class' => \yii\filters\AccessControl::className(),
'rules' => [ // 'rules' => [
[ // [
'allow' => true, // 'allow' => true,
'roles' => ['@'], // 'roles' => ['@'],
], // ],
], // ],
], // ],
] // ]
); // );
} // }
/** /**
* Lists all Company models. * Lists all Company models.