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:55:40 +0000 (14:55 +1200)
commit2ed992d331c733ab0bc96fdce1931fe6c5f30e1c
tree478154b1bb2050de608e3a4fd4c8c70743ce99a7
parentac2a5530566ac68d47d0c82e49abc37bd968c9c7
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: I80dd51af5385fdd5daa2d6ae98bfad3e9dbbf255
Signed-off-by: robertl <robertl@catalyst.net.nz>
htdocs/artefact/comment/edit.php
htdocs/artefact/comment/lib.php