瀏覽代碼

Problème test user pour affichage lien d'administration

refactoring
keun 6 年之前
父節點
當前提交
be53aa1e44
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. +2
    -0
      frontend/web/uploads/.gitignore
  2. +1
    -1
      producer/views/layouts/main.php

+ 2
- 0
frontend/web/uploads/.gitignore 查看文件

@@ -0,0 +1,2 @@
*
!.gitignore

+ 1
- 1
producer/views/layouts/main.php 查看文件

@@ -116,7 +116,7 @@ $producer = $this->getProducer() ;
[
'label' => '<span class="glyphicon glyphicon-cog"></span> Administration',
'url' => Yii::$app->urlManagerBackend->createUrl(['site/index']),
'visible' => Yii::$app->user->identity->isBoulanger(),
'visible' => isset(Yii::$app->user->identity) && Yii::$app->user->identity->isBoulanger(),
'options' => ['id' => 'btn-administration']
],
],

Loading…
取消
儲存