From c789f8ad57a31e1d7423308f7958cc0023e64c9e Mon Sep 17 00:00:00 2001 From: Xavier ALT Date: Tue, 18 Jul 2023 14:49:05 +0000 Subject: [PATCH] [FIX] mail_group: fix access error when browsing public mailing list To reproduce: 1. Create a new mail group with privacy "Everyone" (menu: Website / Configuration / Mailing Lists / Mailing Lists) 2. As an anonymous user, go to /groups and click on its name 3. A 403 Forbidden error is displayed: `You are not allowed to access 'Email Aliases' (mail.alias) records.` This commit is a followup of odoo/odoo@cd2f330bec55 where global mail.alias access rights were revoked, so we have to check if alias is valid as superuser. closes odoo/odoo#128915 Signed-off-by: Thibault Delavallee (tde) --- addons/mail_group/views/portal_templates.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mail_group/views/portal_templates.xml b/addons/mail_group/views/portal_templates.xml index dc890dda4f3..579bdd52b19 100644 --- a/addons/mail_group/views/portal_templates.xml +++ b/addons/mail_group/views/portal_templates.xml @@ -277,9 +277,9 @@