Преглед на файлове

[Site] Correctif erreur getProducerCurrent()

feature/souke
Guillaume Bourgeois преди 9 месеца
родител
ревизия
84d1de4543
променени са 1 файла, в които са добавени 0 реда и са изтрити 5 реда
  1. +0
    -5
      frontend/views/layouts/main.php

+ 0
- 5
frontend/views/layouts/main.php Целия файл

@@ -41,7 +41,6 @@ use common\logic\Setting\SettingModule;
use common\logic\User\User\Module\UserModule;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use common\logic\Producer\Producer\Model\Producer;

\common\assets\CommonAsset::register($this);
\frontend\assets\AppAsset::register($this);
@@ -50,10 +49,6 @@ $userModule = UserModule::getInstance();
$userCurrent = GlobalParam::getCurrentUser();
$isUserCurrentGrantedAsProducer = $userModule->getAuthorizationChecker()->isGrantedAsProducer($userCurrent);
$isHome = (Yii::$app->controller->id == 'site' && \Yii::$app->controller->action->id == 'index');
$producer = null;
if ($isUserCurrentGrantedAsProducer) {
$producer = Producer::searchOne(['id' => \Yii::$app->user->identity->id_producer]);
}
$settingModule = SettingModule::getInstance();
$adminSettingBag = $settingModule->getAdminSettingBag();


Loading…
Отказ
Запис