summaryrefslogtreecommitdiff
path: root/addons/website_forum/static/src/js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2019-06-24 08:57:00 +0000
committerNicolas Martinelli <nim@odoo.com>2019-06-24 11:53:50 +0000
commit4f3497c220c8cb16a69fe394379625b0b5dc59b4 (patch)
tree9a8b451b78ee542fc96492aa335f0dc2bcfed825 /addons/website_forum/static/src/js
parentd489b5ace9e8eb42436b51d6243bd26cdc7cfe00 (diff)
[FIX] website_forum: default karma
- Set the 'Editor Features: image and links' karma point to zero. - Set a user with a total karma points < 30 The user doesn't see the links buttons in the editor. This is because of an old fallback from 2014 which doesn't make sense anymore today. opw-2026025 closes odoo/odoo#34325 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/website_forum/static/src/js')
-rw-r--r--addons/website_forum/static/src/js/website_forum.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_forum/static/src/js/website_forum.js b/addons/website_forum/static/src/js/website_forum.js
index 568caedabe5..ceee3cd3d54 100644
--- a/addons/website_forum/static/src/js/website_forum.js
+++ b/addons/website_forum/static/src/js/website_forum.js
@@ -394,7 +394,7 @@ odoo.define('website_forum.website_forum', function (require) {
$('textarea.load_editor').each(function () {
var $textarea = $(this);
- var editor_karma = $textarea.data('karma') || 30; // default value for backward compatibility
+ var editor_karma = $textarea.data('karma') || 0; // default value for backward compatibility
if (!$textarea.val().match(/\S/)) {
$textarea.val("<p><br/></p>");
}