diff --git a/addons/website_forum/models/forum.py b/addons/website_forum/models/forum.py index 8ea075febd3..aa1bc38af39 100644 --- a/addons/website_forum/models/forum.py +++ b/addons/website_forum/models/forum.py @@ -780,7 +780,7 @@ class Post(models.Model): 'date': self.create_date, } # done with the author user to have create_uid correctly set - new_message = question.with_user(self_sudo.create_uid.id).with_context(mail_create_nosubscribe=True).message_post(**values) + new_message = question.with_user(self_sudo.create_uid.id).with_context(mail_create_nosubscribe=True).sudo().message_post(**values).sudo(False) # unlink the original answer, using SUPERUSER_ID to avoid karma issues self.sudo().unlink() @@ -824,7 +824,7 @@ class Post(models.Model): 'name': _('Re: %s') % (question.name or ''), } # done with the author user to have create_uid correctly set - new_post = self.with_user(post_create_uid).create(post_values) + new_post = self.with_user(post_create_uid).sudo().create(post_values).sudo(False) # delete comment comment.unlink()