diff options
| author | David Beguin <dbe@odoo.com> | 2019-03-08 14:41:55 +0000 |
|---|---|---|
| committer | David Beguin <dbe@odoo.com> | 2019-03-15 15:05:54 +0000 |
| commit | d4db21a9cc89bc09acb64f8743bf12df910abc96 (patch) | |
| tree | 61cb18759a4c27884ed7c55c19f77e0d390d3ca9 /addons/website_rating/static/src/js | |
| parent | 81cebf3485684243b366a60741e45c4744ccf494 (diff) | |
[IMP] website_slides : allow review, comment and vote only if enough karma
To avoid eLearning to be spammed, the comment, review and vote behaviours
are now allowed only if the user has enough karma to do it.
Here is the new behaviour on courses and slides rating / comment / vote
-If allow_comment is checked on Course :
- Review (rating) is allowed on Course only if enough karma
- Comment is allowed on slides within the course
only if enough karma and course type is 'training'
- Vote is allowed on slides within the course
only if enough karma and course type is 'documentation'
-If allow_comment is not checked on Course :
- Review (rating) is not allowed on Course
- Comment is not allowed on slides within the course
- Vote is not allowed on slides within the course
- Rating is not allowed on slides within the course anymore
Task ID : 1943788
PR #31321
Diffstat (limited to 'addons/website_rating/static/src/js')
| -rw-r--r-- | addons/website_rating/static/src/js/website_mail.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_rating/static/src/js/website_mail.js b/addons/website_rating/static/src/js/website_mail.js index 6fd9a305e95..832a2d60e00 100644 --- a/addons/website_rating/static/src/js/website_mail.js +++ b/addons/website_rating/static/src/js/website_mail.js @@ -301,7 +301,7 @@ odoo.define('website_rating.thread', function(require) { 'res_model': false, 'res_id': false, 'pid': 0, - 'display_composer': !session.is_website_user, + 'display_composer': options['disable_composer'] ? false : !session.is_website_user, 'display_rating': true, 'csrf_token': odoo.csrf_token, 'user_id': session.user_id, |
