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)
committerAaron Wells <aaronw@catalyst.net.nz>
Tue, 23 Jul 2013 02:53:49 +0000 (14:53 +1200)
commite1c7c71abfb3ffba032b182f5edf3adbf45f52d6
tree0796a0d2fd9a75cf2af7a035fe52ab13c75945b9
parent739881aa759c67547a44c5ab2eeb92f1e1b22387
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: Ic09fa551a37e8b26dcad3baa3790511e5354e090
Signed-off-by: robertl <robertl@catalyst.net.nz>
htdocs/artefact/comment/edit.php
htdocs/artefact/comment/lib.php