[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>
This commit is contained in:
Nicolas Martinelli
2019-06-24 11:53:50 +00:00
parent d489b5ace9
commit 4f3497c220
@@ -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>");
}