[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
Showing
- addons/website_forum/models/forum.py 2 additions, 2 deletionsaddons/website_forum/models/forum.py
- addons/website_rating/static/src/js/website_mail.js 1 addition, 1 deletionaddons/website_rating/static/src/js/website_mail.js
- addons/website_rating/views/website_rating_templates.xml 2 additions, 1 deletionaddons/website_rating/views/website_rating_templates.xml
- addons/website_slides/controllers/main.py 9 additions, 2 deletionsaddons/website_slides/controllers/main.py
- addons/website_slides/models/slide_channel.py 14 additions, 2 deletionsaddons/website_slides/models/slide_channel.py
- addons/website_slides/models/slide_slide.py 18 additions, 0 deletionsaddons/website_slides/models/slide_slide.py
- addons/website_slides/static/src/js/slides_slide_like.js 4 additions, 0 deletionsaddons/website_slides/static/src/js/slides_slide_like.js
- addons/website_slides/views/slide_channel_views.xml 14 additions, 0 deletionsaddons/website_slides/views/slide_channel_views.xml
- addons/website_slides/views/website_slides_templates_course.xml 2 additions, 1 deletion.../website_slides/views/website_slides_templates_course.xml
- addons/website_slides/views/website_slides_templates_lesson.xml 15 additions, 14 deletions.../website_slides/views/website_slides_templates_lesson.xml
Loading
Please register or sign in to comment