Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Dec 9, 2024
1 parent cef73f9 commit 920e008
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/controllers/AdminComposerUpdateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
use skeeks\cms\backend\BackendAction;
use skeeks\cms\backend\BackendController;
use skeeks\cms\components\marketplace\models\PackageModel;
use skeeks\cms\composer\update\Plugin;
use skeeks\cms\composer\update\PluginConfig;
use skeeks\cms\models\Comment;
use skeeks\cms\rbac\CmsManager;
use skeeks\sx\helpers\ResponseHelper;
use Symfony\Component\Process\Exception\ProcessFailedException;
use yii\helpers\FileHelper;

/**
Expand All @@ -31,12 +30,8 @@ public function init()
$this->name = \Yii::t('skeeks/marketplace', 'Updated platforms');
$this->generateAccessActions = false;

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

parent::init();
}
Expand Down Expand Up @@ -124,7 +119,7 @@ public function actionUpdate()
$root = \Yii::getAlias('@root');
$cmd = "cd {$root} && COMPOSER_HOME=.composer php composer.phar self-update --2";
$cmd2 = "COMPOSER_HOME=.composer php composer.phar update -o --no-interaction >{$fileUpdateSuccessResult} 2>&1 3>{$fileUpdateErrorResult} &";
$cmdfull = $cmd . " && " . $cmd2;
$cmdfull = $cmd." && ".$cmd2;

$response = [];
$result = false;
Expand Down

0 comments on commit 920e008

Please sign in to comment.