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);