[FIX] website_forum: route to ask a question should be available in GET

This commit is contained in:
Christophe Simonis
2015-08-05 13:01:33 +02:00
parent 77878da066
commit 245f45d03f
+1 -1
View File
@@ -299,7 +299,7 @@ class WebsiteForum(http.Controller):
# Post
# --------------------------------------------------
@http.route(['/forum/<model("forum.forum"):forum>/ask'], type='http', auth="user", methods=['POST'], website=True)
@http.route(['/forum/<model("forum.forum"):forum>/ask'], type='http', auth="user", website=True)
def forum_post(self, forum, post_type=None, **post):
user = request.env.user
if post_type not in ['question', 'link', 'discussion']: # fixme: make dynamic