diff --git a/addons/website_slides/controllers/mail.py b/addons/website_slides/controllers/mail.py index 30d7c911358..bad841f9795 100644 --- a/addons/website_slides/controllers/mail.py +++ b/addons/website_slides/controllers/mail.py @@ -29,7 +29,7 @@ class SlidesPortalChatter(PortalChatter): '/mail/chatter_update', ], type='http', auth="user") def mail_update_message(self, res_model, res_id, message, message_id, redirect=None, attachment_ids='', attachment_tokens='', **post): - # keep this mecanism intern to slide currently (saas 12.5) as it is + # keep this mechanism intern to slide currently (saas 12.5) as it is # considered experimental if res_model != 'slide.channel': raise Forbidden() @@ -57,7 +57,7 @@ class SlidesPortalChatter(PortalChatter): message = request.env['mail.message'].search(domain, limit=1) if not message: raise NotFound() - message.write({ + message.sudo().write({ 'body': message_body, 'attachment_ids': [(4, aid) for aid in attachment_ids], })