Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/controllers/AdminUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ public function actions()
},

"accessCallback" => function () {
if ($this->model) {
if ($this->model && class_exists(ShopOrder::class)) {
return ShopOrder::find()->cmsSite()->andWhere(['cms_user_id' => $this->model->id])->exists();
}

Expand Down
2 changes: 2 additions & 0 deletions src/controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class UserController extends Controller

public function init()
{
parent::init();

if (\Yii::$app->request->get(static::REQUEST_PARAM_USERNAME) && !$this->user) {
throw new NotFoundHttpException("User not found or inactive");
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/views/admin-storage/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
?>
<h2><?= \Yii::t('skeeks/cms', 'Servers to store the files.') ?></h2>
<?php foreach (\Yii::$app->storage->getClusters() as $count => $cluster) : ?>
<?php $count = 0; foreach (\Yii::$app->storage->getClusters() as $cluster) : ?>
<div class="sx-box g-pa-10 sx-bg-primary">
<div class="row">
<div class="col-md-12">
Expand Down