Browse Source

Correctif

refactoring
Guillaume Bourgeois 1 year ago
parent
commit
f4b76d1fb8
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      backend/controllers/CronController.php
  2. +1
    -1
      backend/controllers/UserController.php

+ 2
- 1
backend/controllers/CronController.php View File



namespace backend\controllers; namespace backend\controllers;


use common\helpers\MeanPayment;
use common\logic\Order\Order\Model\Order; use common\logic\Order\Order\Model\Order;
use common\logic\PointSale\PointSale\Model\PointSale; use common\logic\PointSale\PointSale\Model\PointSale;
use common\logic\User\CreditHistory\Model\CreditHistory; use common\logic\User\CreditHistory\Model\CreditHistory;
$order->distribution->producer, $order->distribution->producer,
$order->user, $order->user,
$userManager->findOneUserById(User::ID_USER_SYSTEM), $userManager->findOneUserById(User::ID_USER_SYSTEM),
null,
MeanPayment::CREDIT,
$order $order
); );
$countOrders++; $countOrders++;

+ 1
- 1
backend/controllers/UserController.php View File

'allow' => true, 'allow' => true,
'roles' => ['@'], 'roles' => ['@'],
'matchCallback' => function ($rule, $action) { 'matchCallback' => function ($rule, $action) {
return $this->isUserCurrentAdmin();
return $this->getUserManager()->hasAccessBackend();
} }
] ]
], ],

Loading…
Cancel
Save