Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Apr 13, 2020
1 parent 7ff7c5d commit bef8a28
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 20 deletions.
23 changes: 16 additions & 7 deletions src/controllers/AdminBackupController.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,35 @@
<?php
/**
* @link https://cms.skeeks.com/
* @copyright Copyright (c) 2010 SkeekS
* @license https://cms.skeeks.com/license/
* @author Semenov Alexander <[email protected]>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 28.02.2017
*/

namespace skeeks\cms\dbDumper\controllers;

use skeeks\cms\backend\BackendController;
use skeeks\cms\helpers\RequestResponse;
use skeeks\cms\modules\admin\controllers\AdminController;

/**
* Class AdminBackupController
* @package skeeks\cms\dbDumper\controllers
* @author Semenov Alexander <[email protected]>
*/
class AdminBackupController extends AdminController
class AdminBackupController extends BackendController
{
public function init()
{
$this->name = \Yii::t('skeeks/dbDumper', "Backups");


$this->generateAccessActions = false;
$this->accessCallback = function () {
if (!\Yii::$app->cms->site->is_default) {
return false;
}
return \Yii::$app->user->can($this->uniqueId);
};


parent::init();
}

Expand Down
20 changes: 14 additions & 6 deletions src/controllers/AdminSettingsController.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
<?php
/**
* @link https://cms.skeeks.com/
* @copyright Copyright (c) 2010 SkeekS
* @license https://cms.skeeks.com/license/
* @author Semenov Alexander <[email protected]>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (�����)
* @date 19.04.2016
*/

namespace skeeks\cms\dbDumper\controllers;

use skeeks\cms\backend\BackendController;
use skeeks\cms\helpers\RequestResponse;
use skeeks\cms\modules\admin\controllers\AdminController;

/**
* Class AdminSettingsController
* @package skeeks\cms\dbDumper\controllers
* @author Semenov Alexander <[email protected]>
*/
class AdminSettingsController extends AdminController
class AdminSettingsController extends BackendController
{
public function init()
{
$this->name = \Yii::t('skeeks/dbDumper', "Settings");

$this->generateAccessActions = false;
$this->accessCallback = function () {
if (!\Yii::$app->cms->site->is_default) {
return false;
}
return \Yii::$app->user->can($this->uniqueId);
};

parent::init();
}

Expand Down
21 changes: 14 additions & 7 deletions src/controllers/AdminStructureController.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
<?php
/**
* @link https://cms.skeeks.com/
* @copyright Copyright (c) 2010 SkeekS
* @license https://cms.skeeks.com/license/
* @author Semenov Alexander <[email protected]>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (�����)
* @date 19.04.2016
*/

namespace skeeks\cms\dbDumper\controllers;

use skeeks\cms\modules\admin\controllers\AdminController;
use skeeks\cms\backend\BackendController;
use yii\data\ArrayDataProvider;

/**
* Class AdminStructureController
* @package skeeks\cms\dbDumper\controllers
* @author Semenov Alexander <[email protected]>
*/
class AdminStructureController extends AdminController
class AdminStructureController extends BackendController
{
public function init()
{
$this->name = \Yii::t('skeeks/dbDumper', "The structure of the database");

$this->generateAccessActions = false;
$this->accessCallback = function () {
if (!\Yii::$app->cms->site->is_default) {
return false;
}
return \Yii::$app->user->can($this->uniqueId);
};

parent::init();
}

Expand Down

0 comments on commit bef8a28

Please sign in to comment.