Sfoglia il codice sorgente

Problème test user pour affichage lien d'administration

dev
keun 6 anni fa
parent
commit
be53aa1e44
2 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +2
    -0
      frontend/web/uploads/.gitignore
  2. +1
    -1
      producer/views/layouts/main.php

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

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

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

@@ -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…
Annulla
Salva