Closed dfsmania closed 3 months ago
[!Caution] Review this logic, will this also work for nested submenu items?
Added test to check the logic on nested submenus. The logic actually work because deeper submenues are filtered/transformed first.
@ruanpepe After inspecting the logic for menu creation, I decided to move the logic to filter an empty submenu to an upper level section, it's cleaner now and less tricky than adding it on the Gate Filter.
I have created tests to cover the cases, but it would help more if you can test these changes in your environment too, it's just a minor change on the MenuItemHelper
class.
Regards!
What's in this PR?
Improve the
Gate
filter to also restrict submenu items were all its children are also restricted.Fix #1111
Checklist