I do want to build a site where users are totally moderated (both when posting stories and comments).
When a user sees an approved comment he/she wrote previously, there's the damned "Edit your comment" option, he/she may edit the comment and post it back, new version *is not* send again to the moderation queue, but simply it's immediately visible. This is a clear bypass of moderation!

Comments

zakmck’s picture

I've changed function comment_access return value (in comment.module) with this:

return
user_access("post comments without approval") &&
$user->uid && $user->uid == $comment->uid && comment_num_replies($comment->cid) == 0;

moshe weitzman’s picture

Priority: Critical » Normal
moshe weitzman’s picture

Title: Severe error in "Edit Your Comment" » Edited comments not returned to moderation queue
Bèr Kessels’s picture

It is a year since this was reported. Did the 4.5 drupal_goto's in the comment system fix this? If so, this should be closed.

jo1ene’s picture

I just tried this on my 4.6.3 system and the issue still exists. A user can edit their comment when approval is required. The solution is to disallow editing without approval when posting is not allowed without approval.

magico’s picture

Verified.

I think this needs a solution, because a user an post "nice" comments and then after approving he can edits and put only garbage or something like that without moderators knowing.

edmund.kwok’s picture

StatusFileSize
new770 bytes

This patch checks if the user is allowed to post comments without approval before showing the edit link.

edmund.kwok’s picture

Status: Active » Needs review
StatusFileSize
new1.58 KB

And this patch allows edit, but sent the comment back to the approval queue if the user is not allowed to post comments without approval.

Not sure which solution is the best, comments? Suggestions? Or another solution?

magico’s picture

I think #8 is the correct solution because it follows the same comment workflow.

edmund.kwok’s picture

StatusFileSize
new1.56 KB

Patch #8 rerolled to latest HEAD. This patch returns an edited comment to moderation if the user is not allowed to post without approval.

Yeah, I agree that this follows the same workflow; allowing edit, yet there is still moderation.

drumm’s picture

Status: Needs review » Fixed

Looks like this was applied.

Anonymous’s picture

Status: Fixed » Closed (fixed)