Ver código fonte

Problème test user pour affichage lien d'administration

refactoring
keun 6 anos atrás
pai
commit
be53aa1e44
2 arquivos alterados com 3 adições e 1 exclusões
  1. +2
    -0
      frontend/web/uploads/.gitignore
  2. +1
    -1
      producer/views/layouts/main.php

+ 2
- 0
frontend/web/uploads/.gitignore Ver arquivo

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

+ 1
- 1
producer/views/layouts/main.php Ver arquivo

@@ -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']
],
],

Carregando…
Cancelar
Salvar