From 4f3497c220c8cb16a69fe394379625b0b5dc59b4 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Mon, 24 Jun 2019 08:57:00 +0000 Subject: [PATCH] [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) --- addons/website_forum/static/src/js/website_forum.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("


"); }