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:54:33 +0000 (14:54 +1200)
commit1b5babb00de1091568265797128b19aaf1a7c578
tree381c09adf33e4ba07ddc6f3c99ffba8936c9eba5
parent7d6ab3e30b664b00bf772e8e7927dcf90dd6b5b0
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: I74d44f5dab6442c2cae11df1dc588bd753471f8e
Signed-off-by: robertl <robertl@catalyst.net.nz>
htdocs/artefact/comment/edit.php
htdocs/artefact/comment/lib.php