MillwrightMenuBundle
MillwrightMenuBundle copied to clipboard
404 error page: menu builds not correct
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)!
Hey, are you there?
Yes, but I don't write on php about 2 years. I can't help you. I forgot this language. It bundle still working?
Yes. It works
Maybe you could give me the rights to maintain this repo ?
@maZahaca You could create a pull request, I'll merge it.