Pārlūkot izejas kodu

Problème test user pour affichage lien d'administration

refactoring
keun pirms 6 gadiem
vecāks
revīzija
be53aa1e44
2 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +2
    -0
      frontend/web/uploads/.gitignore
  2. +1
    -1
      producer/views/layouts/main.php

+ 2
- 0
frontend/web/uploads/.gitignore Parādīt failu

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

+ 1
- 1
producer/views/layouts/main.php Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt