added layout and translation to error pages #100 (#101)

This commit is contained in:
Kevin Papst
2018-01-21 22:53:10 +01:00
committed by GitHub
parent 4cbc5391c0
commit 6ae9bc4df5
13 changed files with 186 additions and 98 deletions

View File

@@ -54,6 +54,10 @@ class NavbarShowUserSubscriber implements EventSubscriberInterface
*/
public function onShowUser(ShowUserEvent $event)
{
if ($this->storage->getToken() === null) {
return;
}
/* @var $myUser User */
$myUser = $this->storage->getToken()->getUser();