public function resolve(MenuEntry $menu, Entity\Users $user)
    {
        foreach ($menu->children() as $name => $child) {
            $this->doResolve($menu, $child, $user);

            if ($child->children() === [] && $child->getUri() === null) {
                $menu->remove($name);
            }
        }
    }