Browse Source

Problème test user pour affichage lien d'administration

refactoring
keun 6 years ago
parent
commit
be53aa1e44
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      frontend/web/uploads/.gitignore
  2. +1
    -1
      producer/views/layouts/main.php

+ 2
- 0
frontend/web/uploads/.gitignore View File

*
!.gitignore

+ 1
- 1
producer/views/layouts/main.php View File

[ [
'label' => '<span class="glyphicon glyphicon-cog"></span> Administration', 'label' => '<span class="glyphicon glyphicon-cog"></span> Administration',
'url' => Yii::$app->urlManagerBackend->createUrl(['site/index']), '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'] 'options' => ['id' => 'btn-administration']
], ],
], ],

Loading…
Cancel
Save