Skip to content

layout of quick create menu messed up when you can edit but not create modules

In this profile, you can edit but not create products:

image.

Then the whole header options get messed up:

image

this is related to the layout file layouts/v7/modules/Vtiger/partials/Topbar.tpl

It produces erroneous html code as you can see here:

image

the <ul class="nav navbar-nav"> should contain the 4 <li> elements that are currently outside as you can see in the browsers inspector:

image

Removing the if statement on line 130 fixes the issue, but I'm not sure it is the "correct" solution:

image