Make WordPress Core

Opened 19 years ago

Closed 18 years ago

#5344 closed enhancement (duplicate)

Users without comment moderation priv's shouldn't be able to see comments in moderation

Reported by: simonwheatley Owned by:
Priority: normal Milestone:
Component: Administration Version:
Severity: normal Keywords: comments privileges user
Cc: Focuses:

Description

Currently users without comment moderation privileges can see the comments in moderation. This could be inappropriate for certain users.

I am working on a Wordpress Mu blogging system for a series of primary school classes and we'll necessarily be giving young children logins to the WP admin area. We want to allow commenting on the blog, and will be using Akismet and the standard comment moderation filters to ensure that spam comments or comments with an adult subject matter are not published and are not visible to the young students.

My proposed patch inserts some additional filters into the comment selection SQL on edit.php comments to ensure that unapproved comments are not selected if the current user cannot moderate_comments. I've only patched wp-admin/edit.php, which is the only place I can find where this problem exists.

Attachments (1)

selective_comment_viewing_ban.patch​ (761 bytes ) - added by simonwheatley 19 years ago.
Patch altering the comment selection SQL on edit.php to not return comments if user cannot moderate comments

Download all attachments as: .zip

Change History (4)

@simonwheatley
19 years ago

Patch altering the comment selection SQL on edit.php to not return comments if user cannot moderate comments

#1 @lloydbudd
19 years ago

  • Keywords has-patch added
  • Milestone 2.5 → 2.4

#2 @ffemtcj
19 years ago

  • Milestone 2.5 → 2.6

#3 @mrmist
18 years ago

  • Keywords has-patch removed
  • Milestone 2.9
  • Resolution → duplicate
  • Status new → closed

See #8684 for relevant 2.7 patch.

Note: See TracTickets for help on using tickets.