company controller fix
This commit is contained in:
parent
0d79a7df34
commit
ae993956ee
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user