Commit 702b9629 authored by Ad Schellevis's avatar Ad Schellevis

(menu/api) hide non visible items

parent 38a8276d
...@@ -193,8 +193,8 @@ class MenuController extends ApiControllerBase ...@@ -193,8 +193,8 @@ class MenuController extends ApiControllerBase
$this->extractMenuLeaves($menu_item->Children, $items); $this->extractMenuLeaves($menu_item->Children, $items);
} }
// if Url contains wildcard, it's only meant to further define it's parent. // only return visible items
if (stripos($menu_item->Url, "*") === false) { if ($menu_item->Visibility != 'hidden') {
unset($menu_item->Children); unset($menu_item->Children);
$items[] = $menu_item; $items[] = $menu_item;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment