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/2090 gitorious. org/mahara/ mahara/ commit/ 1fe0319b9c1f9b3 135428cca94914c 5c8b4e027d
Committed: http://
Submitter: Aaron Wells (<email address hidden>)
Branch: master
commit 1fe0319b9c1f9b3 135428cca94914c 5c8b4e027d
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: I276c3d3fa67a99 d9030d10a617204 8c255e91b5b
Signed-off-by: robertl <email address hidden>