Fix for bypassing moderation when making comment public (Bug #1171310)
authorRobert Lyon <robertl@catalyst.net.nz>
Sun, 28 Apr 2013 21:47:27 +0000 (09:47 +1200)
committerGerrit Code Review <gerrit@reviews.mahara.org>
Fri, 19 Jul 2013 03:59:01 +0000 (15:59 +1200)
commit1fe0319b9c1f9b3135428cca94914c5c8b4e027d
tree37195de3525ec7a6b4d63c1c7c2997f53308d63c
parent0f2552c73d64f9c9eb14055b5ecda68db2f83710
Fix for bypassing moderation when making comment public (Bug #1171310)

To get a private -> public comment moderated the system needs to check:
* if the view has approvecomments set to 1
* if the submitter has checked the make public checkbox
* if the submitter is not the owner of the view
* if the view is a group view
* if the approvecomments are set per view

And update the comment table accordingly and now sends off notify
message if needed.

Removed some unneeded variable declarations

Change-Id: I276c3d3fa67a99d9030d10a6172048c255e91b5b
Signed-off-by: robertl <robertl@catalyst.net.nz>
htdocs/artefact/comment/edit.php
htdocs/artefact/comment/lib.php