From 801aa984ae4509ca28475ac971f807b6daa6f53c Mon Sep 17 00:00:00 2001 From: Alejandro Vallejo Date: Tue, 30 Jul 2024 13:43:54 +0200 Subject: [PATCH] [FIX] website_menu_by_user_status: Change condition to maintain core funcionality. There was a bug that changes how the core works and allowed access to an unpublished page from one of its menus if it is set to visible to your logged-in or non-logged-in users, taking us to an error page --- website_menu_by_user_status/models/website_menu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_menu_by_user_status/models/website_menu.py b/website_menu_by_user_status/models/website_menu.py index 1afa8034f4..05a9a8f30d 100644 --- a/website_menu_by_user_status/models/website_menu.py +++ b/website_menu_by_user_status/models/website_menu.py @@ -33,7 +33,7 @@ def _compute_visible(self): super()._compute_visible() for menu in self: if not menu.is_visible: - menu.is_visible = False + continue if self.env.user == self.env.ref("base.public_user"): menu.is_visible = menu.user_not_logged