mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] web_responsive: Disable access to hidden menus
When doing menu search, some menus that the user didn't have permission to use were presented to him. Fix #850.
This commit is contained in:
committed by
Pedro M. Baeza
parent
5723f17fde
commit
f6697f5a1c
@@ -243,8 +243,11 @@ odoo.define('web_responsive', function(require) {
|
||||
// Trigger navigation to pseudo-focused link
|
||||
// & fake a click (in case of anchor link).
|
||||
if (e.key === 'Enter') {
|
||||
window.location.href = $('.web-responsive-focus').attr('href');
|
||||
this.handleClickZones();
|
||||
var href = $('.web-responsive-focus').attr('href');
|
||||
if (!_.isUndefined(href)) {
|
||||
window.location.href = href;
|
||||
this.handleClickZones();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user