diff options
| author | Jeremy Kersten <jke@odoo.com> | 2016-02-10 12:04:08 +0100 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2016-02-10 17:09:20 +0100 |
| commit | 5d14c2c0ff3db18b0894fe0979413cd58be9720b (patch) | |
| tree | f7c6ab6b54cb890f5b598668e13507e131936fb6 /addons/website_forum/controllers/main.py | |
| parent | 0b27a371565fc229f2e82b2d7701e00229fe5051 (diff) | |
[FIX] website_forum: don't display user profile link in post when it is private
Return 404 for seo when profile is private.
Diffstat (limited to 'addons/website_forum/controllers/main.py')
| -rw-r--r-- | addons/website_forum/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index e9776226bc8..5bc71a5848c 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -603,7 +603,7 @@ class WebsiteForum(http.Controller): if (user_id != request.session.uid and not (user.website_published or (count_user_questions and current_user.karma > forum.karma_unlink_all))): - return request.website.render("website_forum.private_profile", values) + return request.render("website_forum.private_profile", values, status=404) # limit length of visible posts by default for performance reasons, except for the high # karma users (not many of them, and they need it to properly moderate the forum) |
