[FIX] forum: closing spam/offensive questions should give author karma penalty
authorOlivier Dony <odo@openerp.com>
Tue, 4 Nov 2014 18:03:17 +0000 (19:03 +0100)
committerOlivier Dony <odo@openerp.com>
Wed, 5 Nov 2014 16:09:10 +0000 (17:09 +0100)
commit6c55dab261a486699814dec7ffdc47164c5d07f7
tree6afcf32152518145a6ebc4b925356207eb89ba44
parentd6cfd8ed4b9e5d55e056e6eb6c1c86c31cb4bf0a
[FIX] forum: closing spam/offensive questions should give author karma penalty

This is a partial patch for issue #3460, pending more
improvements and refinements in master.

Currently the karma penalty is hardcoded to 5*downvote penalty,
which may or may not be sufficient to prevent posting, depending
on the other karma levels.
addons/website_forum/controllers/main.py
addons/website_forum/models/forum.py