reports access

This commit is contained in:
andrey 2021-08-12 14:00:23 +03:00
parent 3dc11f8075
commit 10ebd49859

View File

@ -7,6 +7,7 @@ use common\classes\Debug;
use Yii;
use common\models\Reports;
use backend\modules\reports\models\ReportsSearch;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
@ -28,6 +29,15 @@ class ReportsController extends Controller
'delete' => ['POST'],
],
],
'access' => [
'class' => AccessControl::className(),
'rules' => [
[
'allow' => true,
'roles' => ['admin'],
],
],
],
];
}