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.
Reviewed: https:/ /reviews. mahara. org/2363 gitorious. org/mahara/ mahara/ commit/ e1c7c71abfb3ffb a032b182f5edf3a dbf45f52d6
Committed: http://
Submitter: Aaron Wells (<email address hidden>)
Branch: 1.7_STABLE
commit e1c7c71abfb3ffb a032b182f5edf3a dbf45f52d6
Author: Robert Lyon <email address hidden>
Date: Mon Apr 29 09:47:27 2013 +1200
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: Ic09fa551a37e8b 26dcad3baa37905 11e5354e090
Signed-off-by: robertl <email address hidden>