Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Apr 17, 2020
1 parent bef8a28 commit b02054e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/controllers/AdminBackupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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);
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/AdminSettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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);
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/AdminStructureController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,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);
Expand Down

0 comments on commit b02054e

Please sign in to comment.