From a8d667eeb725098dbdc7c2b60b445be0f68be763 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Fri, 29 Aug 2014 14:18:36 +0200 Subject: [PATCH] [FIX] website_forum: convert answer to comment, use superuser To browse the forum post, as the partner of the create_uid of the post is needed, which can't be read by portal users. --- addons/website_forum/models/forum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_forum/models/forum.py b/addons/website_forum/models/forum.py index 2b28eb465cc..fc4db96685b 100644 --- a/addons/website_forum/models/forum.py +++ b/addons/website_forum/models/forum.py @@ -420,7 +420,7 @@ class Post(osv.Model): """ Tools to convert an answer (forum.post) to a comment (mail.message). The original post is unlinked and a new comment is posted on the question using the post create_uid as the comment's author. """ - post = self.browse(cr, uid, id, context=context) + post = self.browse(cr, SUPERUSER_ID, id, context=context) if not post.parent_id: return False