From 539dfe0fc510d27c19f46189e89c1d71979e3b30 Mon Sep 17 00:00:00 2001 From: Semenov Date: Fri, 17 Apr 2020 17:23:43 +0300 Subject: [PATCH] dev --- src/controllers/AdminMeasureController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/AdminMeasureController.php b/src/controllers/AdminMeasureController.php index efa2d3e..33c5627 100644 --- a/src/controllers/AdminMeasureController.php +++ b/src/controllers/AdminMeasureController.php @@ -35,7 +35,7 @@ public function init() $this->generateAccessActions = false; $this->accessCallback = function () { - if (!\Yii::$app->cms->site->is_default) { + if (!\Yii::$app->skeeks->site->is_default) { return false; } return \Yii::$app->user->can($this->uniqueId);