diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2019-08-27 14:25:50 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-08-28 13:27:58 +0000 |
| commit | a9462adfcb1fcdca14e76c83f1f052ea96cc6227 (patch) | |
| tree | 4a6896a601fd3cdd746f41781995d2c15051dc22 | |
| parent | 608ea7f85d7bae2dfc3fde80d477c1514fa7e262 (diff) | |
[FIX] website_slides: allow portal users to rate
PURPOSE
Test frontend and UI tools of eLearning.
SPECIFICATIONS
Portal users cannot post reviews as they have no write right on channels.
When trying to post a review on a channel this leads to a 403.
In this commit we correctly propagate channel access token to the composer
in order to allow rating.
LINKS
Task ID 1937768
| -rw-r--r-- | addons/website_slides/views/website_slides_templates_course.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/website_slides/views/website_slides_templates_course.xml b/addons/website_slides/views/website_slides_templates_course.xml index c1aae1b08ba..bbaefa81aa5 100644 --- a/addons/website_slides/views/website_slides_templates_course.xml +++ b/addons/website_slides/views/website_slides_templates_course.xml @@ -144,6 +144,7 @@ <t t-set="rating_avg" t-value="rating_avg"/> <t t-set="rating_total" t-value="rating_count"/> <t t-set="object" t-value="channel"/> + <t t-set="token" t-value="channel.access_token"/> <t t-set="hash" t-value="message_post_hash"/> <t t-set="pid" t-value="message_post_pid"/> <t t-set="default_message_id" t-value="last_message_id"/> |
