[FIX] survey route that is only accessed with POST verb

This commit is contained in:
Fabien Meghazi 2014-05-14 13:58:34 +02:00
parent 8e3a8bb0fe
commit 1ce14dbe6a
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ class WebsiteSurvey(http.Controller):
# AJAX submission of a page
@http.route(['/survey/submit/<model("survey.survey"):survey>'],
type='http', auth='public', multilang=True, website=True)
type='http', methods=['POST'], auth='public', multilang=True, website=True)
def submit(self, survey, **post):
_logger.debug('Incoming data: %s', post)
page_id = int(post['page_id'])