@@ -38,6 +38,7 @@ | |||
namespace backend\controllers; | |||
use common\helpers\MeanPayment; | |||
use common\logic\Order\Order\Model\Order; | |||
use common\logic\PointSale\PointSale\Model\PointSale; | |||
use common\logic\User\CreditHistory\Model\CreditHistory; | |||
@@ -204,7 +205,7 @@ class CronController extends BackendController | |||
$order->distribution->producer, | |||
$order->user, | |||
$userManager->findOneUserById(User::ID_USER_SYSTEM), | |||
null, | |||
MeanPayment::CREDIT, | |||
$order | |||
); | |||
$countOrders++; |
@@ -77,7 +77,7 @@ class UserController extends BackendController | |||
'allow' => true, | |||
'roles' => ['@'], | |||
'matchCallback' => function ($rule, $action) { | |||
return $this->isUserCurrentAdmin(); | |||
return $this->getUserManager()->hasAccessBackend(); | |||
} | |||
] | |||
], |