[IMP] [TEST] website_forum: security fixes + tests
authorssh-odoo <ssh@openerp.com>
Fri, 19 Sep 2014 07:25:19 +0000 (12:55 +0530)
committerThibault Delavallée <tde@openerp.com>
Thu, 23 Oct 2014 09:36:03 +0000 (11:36 +0200)
commitef8099424d1db9ca0b94234b8877db65be335794
tree040b7928a2aa537d73281abb343fb81a4956db5e
parentbf3251fd0acc3ffc28bd203c7c75d59a1a8b0b99
[IMP] [TEST] website_forum: security fixes + tests

- fixed voting, karma check could be avoided
- fixed posting comments, now correctly checking karma (not for
notifications)
- fixed bootstraping of users, now not allowed to ask questions by default;
added validation email that gives the first karma points required to
participate
- added tests
addons/website_forum/__init__.py
addons/website_forum/controllers/main.py
addons/website_forum/data/forum_data.xml
addons/website_forum/models/forum.py
addons/website_forum/models/res_users.py
addons/website_forum/static/src/js/website_forum.js
addons/website_forum/tests/__init__.py [new file with mode: 0644]
addons/website_forum/tests/common.py [new file with mode: 0644]
addons/website_forum/tests/test_forum.py [new file with mode: 0644]
addons/website_forum/views/forum.xml
addons/website_forum/views/website_forum.xml