[FIX] web_shortcuts issue when anonymous user
bzr revid: vta@openerp.com-20121207113153-unndur6iiwdqnxip
This commit is contained in:
parent
c030bc217f
commit
c9a64c1735
|
@ -126,6 +126,8 @@ instance.web.ViewManagerAction.include({
|
|||
$shortcut_toggle.hide();
|
||||
return;
|
||||
}
|
||||
// Anonymous users don't have user_menu
|
||||
if (shortcuts_menu) {
|
||||
$shortcut_toggle.toggleClass('oe_shortcuts_remove', shortcuts_menu.has(self.session.active_id));
|
||||
$shortcut_toggle.unbind("click").click(function() {
|
||||
if ($shortcut_toggle.hasClass("oe_shortcuts_remove")) {
|
||||
|
@ -141,6 +143,7 @@ instance.web.ViewManagerAction.include({
|
|||
$shortcut_toggle.toggleClass("oe_shortcuts_remove");
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue