[FIX] website_forum: second part of the fix introduced at revision fd5516ade8. Wrong commit was added to 8.0, missing code cleaning.
This commit is contained in:
@@ -496,10 +496,11 @@ class WebsiteForum(http.Controller):
|
||||
posts_ids = Post.browse(cr, uid, posts.keys(), context=context)
|
||||
posts = dict(map(lambda x: (x.id, (x.parent_id or x, x.parent_id and x or False)), posts_ids))
|
||||
|
||||
if user.id is uid:
|
||||
post['my_profile'] = 'True'
|
||||
# TDE CLEANME MASTER: couldn't it be rewritten using a 'menu' key instead of one key for each menu ?
|
||||
if user.id == uid:
|
||||
post['my_profile'] = True
|
||||
else:
|
||||
post['users'] = 'True'
|
||||
post['users'] = True
|
||||
|
||||
values.update({
|
||||
'uid': uid,
|
||||
|
||||
Reference in New Issue
Block a user