diff --git a/controllers/DeliveryController.php b/controllers/DeliveryController.php index 7edab3f..f2150f4 100755 --- a/controllers/DeliveryController.php +++ b/controllers/DeliveryController.php @@ -8,6 +8,7 @@ use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; + use yii\filters\AccessControl; /** * DeliveryController implements the CRUD actions for Delivery model. @@ -34,6 +35,22 @@ 'delete' => [ 'POST' ], ], ], + 'access' => [ + 'class' => AccessControl::className(), + 'rules' => [ + [ + 'actions' => [ + 'login', + 'error', + ], + 'allow' => true, + ], + [ + 'allow' => true, + 'roles' => [ '@' ], + ], + ], + ], ]; } diff --git a/controllers/LabelController.php b/controllers/LabelController.php index 4ccf94b..5ec3f2c 100755 --- a/controllers/LabelController.php +++ b/controllers/LabelController.php @@ -8,6 +8,7 @@ use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; + use yii\filters\AccessControl; /** * LabelController implements the CRUD actions for Label model. @@ -34,6 +35,22 @@ 'delete' => [ 'POST' ], ], ], + 'access' => [ + 'class' => AccessControl::className(), + 'rules' => [ + [ + 'actions' => [ + 'login', + 'error', + ], + 'allow' => true, + ], + [ + 'allow' => true, + 'roles' => [ '@' ], + ], + ], + ], ]; } diff --git a/controllers/OrderController.php b/controllers/OrderController.php index 1a1b35a..5c901f8 100755 --- a/controllers/OrderController.php +++ b/controllers/OrderController.php @@ -14,6 +14,7 @@ use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; + use yii\filters\AccessControl; /** * OrderController implements the CRUD actions for Order model. @@ -32,6 +33,22 @@ 'delete' => [ 'POST' ], ], ], + 'access' => [ + 'class' => AccessControl::className(), + 'rules' => [ + [ + 'actions' => [ + 'login', + 'error', + ], + 'allow' => true, + ], + [ + 'allow' => true, + 'roles' => [ '@' ], + ], + ], + ], ]; } diff --git a/controllers/OrderProductController.php b/controllers/OrderProductController.php index 99654c1..7dee4c5 100755 --- a/controllers/OrderProductController.php +++ b/controllers/OrderProductController.php @@ -8,6 +8,7 @@ use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; + use yii\filters\AccessControl; /** * OrderProductController implements the CRUD actions for OrderProduct model. @@ -26,6 +27,22 @@ 'delete' => [ 'POST' ], ], ], + 'access' => [ + 'class' => AccessControl::className(), + 'rules' => [ + [ + 'actions' => [ + 'login', + 'error', + ], + 'allow' => true, + ], + [ + 'allow' => true, + 'roles' => [ '@' ], + ], + ], + ], ]; } diff --git a/controllers/PaymentController.php b/controllers/PaymentController.php index c1123fc..2e222aa 100755 --- a/controllers/PaymentController.php +++ b/controllers/PaymentController.php @@ -8,6 +8,7 @@ use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; + use yii\filters\AccessControl; /** * PaymentController implements the CRUD actions for Payment model. @@ -34,6 +35,22 @@ 'delete' => [ 'POST' ], ], ], + 'access' => [ + 'class' => AccessControl::className(), + 'rules' => [ + [ + 'actions' => [ + 'login', + 'error', + ], + 'allow' => true, + ], + [ + 'allow' => true, + 'roles' => [ '@' ], + ], + ], + ], ]; } -- libgit2 0.21.4