[FIX] web: webclient_bootstrap: render the menus when the user is really a user

The webclient rendering is done in two parts: the server renders the boilerplates
including the menus, and then the  javascript launch the webclient using the
server-side boilerplates. In some case, we want to render the boilerplates but not
the menus (auth_calendar). Added groups around the t-call to the menu in the web
template. Fixes issue #2044.
This commit is contained in:
Simon Lejeune 2014-09-08 14:00:42 +02:00
parent 7558e2e786
commit 74aa7406bf
1 changed files with 2 additions and 2 deletions

View File

@ -214,7 +214,7 @@
</script>
</t>
<nav id="oe_main_menu_navbar" class="navbar navbar-inverse" role="navigation">
<nav id="oe_main_menu_navbar" class="navbar navbar-inverse" role="navigation" groups="base.group_user,base.group_portal">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
@ -230,7 +230,7 @@
<table class="oe_webclient">
<tr>
<td class="oe_leftbar" valign="top">
<div>
<div groups="base.group_user,base.group_portal">
<t t-call="web.menu_secondary"/>
</div>
</td>