@@ -0,0 +1,2 @@ | |||
* | |||
!.gitignore |
@@ -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'] | |||
], | |||
], |