summaryrefslogtreecommitdiff
path: root/addons/web_editor
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-11-29 14:18:15 +0000
committerThibault Delavallée <tde@odoo.com>2018-12-07 09:36:46 +0000
commit8e38d97f6901fb5dc27be7da61a22f6b67eb8e2a (patch)
treeae090830732be923c63d3a7428037b854978ac35 /addons/web_editor
parentf5625969bec67b864117af76931c1dbf6346c2a7 (diff)
[FIX] survey: make a specific route for testing surveys
Purpose of this commit is to clean a bit the test mode of surveys before working a bit on ACLs and survey access. Currently when taking a survey with a magic 'phantom' token it generates a test answer allowing to go through the survey process. However it has several drawbacks : * 'phantom' is not a real token. Token parameter should be used only for real tokens and avoid having corner case when managing simple parameter; * token should only be used to ensure people have been granted access to answering surveys; * it is currently available for every users; * it is pure unwanted magic; In this commit we add a separate route for testing surveys that create the test answer and then redirects to the survey with this answer. It is now also limited to survey managers or survey officers testing their own surveys. Survey JS tour now uses the standard URL and not the testing one. Indeed as testing is now limited to survey officers and managers tour should test real life use cases. This commit is linked to task ID 1916034 and PR #29339.
Diffstat (limited to 'addons/web_editor')
0 files changed, 0 insertions, 0 deletions