• Robert Lyon's avatar
    Fix for bypassing moderation when making comment public (Bug #1171310) · 1fe0319b
    Robert Lyon authored
    
    
    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: I276c3d3fa67a99d9030d10a6172048c255e91b5b
    Signed-off-by: Robert Lyon's avatarrobertl <robertl@catalyst.net.nz>
    1fe0319b