diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-02-02 14:48:31 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-02-02 14:48:31 +0100 |
| commit | 2611a8198eaac60cf424742e4dc411700e439352 (patch) | |
| tree | 64b4c0c2cbbf6199995b3f5db5e213d6813ab830 /addons/website_forum/controllers/main.py | |
| parent | 7e44ddcda3f21c7e6401173539dc0fe93f9a7dd2 (diff) | |
| parent | e765569d04766ca005484c4746faeb08bd917446 (diff) | |
[MERGE] forward port of branch saas-7 up to e765569
Diffstat (limited to 'addons/website_forum/controllers/main.py')
| -rw-r--r-- | addons/website_forum/controllers/main.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index 9a443bbade6..2f0e6102afd 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -221,9 +221,8 @@ class WebsiteForum(http.Controller): except URLError: return False - @http.route(['''/forum/<model("forum.forum"):forum>/question/<model("forum.post", "[('forum_id','=',forum[0]),('parent_id','=',False)]"):question>'''], type='http', auth="public", website=True) + @http.route(['''/forum/<model("forum.forum"):forum>/question/<model("forum.post", "[('forum_id','=',forum[0]),('parent_id','=',False),('can_view', '=', True)]"):question>'''], type='http', auth="public", website=True) def question(self, forum, question, **post): - # Hide posts from abusers (negative karma), except for moderators if not question.can_view: raise werkzeug.exceptions.NotFound() |
