MillwrightMenuBundle icon indicating copy to clipboard operation
MillwrightMenuBundle copied to clipboard

404 error page: menu builds not correct

Open maZahaca opened this issue 12 years ago • 5 comments

On 404 error page symfony don't have a token.

$display = true;
$rootItem = !$item->getName();
$token = $this->security->getToken();
if ($token) {

And then

if(!$display) {
  if ($options['showNonAuthorized'] && !$token) {
       $display = true;
  }
  if ($options['showAsText']) {
       $display = true;
       $item->setUri(null);
  }
}

On 404 page token is null, and menu factory creates all menu (without access too)!

maZahaca avatar Jan 22 '13 09:01 maZahaca

Hey, are you there?

maZahaca avatar Mar 17 '15 11:03 maZahaca

Yes, but I don't write on php about 2 years. I can't help you. I forgot this language. It bundle still working?

zerkalica avatar Mar 17 '15 11:03 zerkalica

Yes. It works

maZahaca avatar Mar 17 '15 16:03 maZahaca

Maybe you could give me the rights to maintain this repo ?

maZahaca avatar Mar 19 '15 11:03 maZahaca

@maZahaca You could create a pull request, I'll merge it.

HadesArchitect avatar Apr 19 '15 18:04 HadesArchitect