浏览代码

[Site] Correctif nav_user_top

feature/souke
Guillaume Bourgeois 9 个月前
父节点
当前提交
d3013ca35c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      common/views/nav_user_top.php

+ 2
- 2
common/views/nav_user_top.php 查看文件

@@ -13,8 +13,8 @@ $userCurrent = GlobalParam::getCurrentUser();

$isUserCurrentGrantedAsProducer = $userModule->getAuthorizationChecker()->isGrantedAsProducer($userCurrent);
$producer = null;
if ($isUserCurrentGrantedAsProducer) {
$producer = $producerModule->getRepository()->findOneProducerById(\Yii::$app->user->identity->id_producer);
if ($isUserCurrentGrantedAsProducer && $userCurrent->id_producer) {
$producer = $producerModule->getRepository()->findOneProducerById($userCurrent->id_producer);
}

?>

正在加载...
取消
保存