Ticket #17909 (closed enhancement: fixed)

Opened 11 months ago

Last modified 6 months ago

admin-ajax.php should use edit_comment capability

Reported by: ejdanderson Owned by:
Priority: normal Milestone: 3.3
Component: Administration Version: 3.2
Severity: normal Keywords: has-patch
Cc: devin@…

Description

admin-ajax.php is still using the 'edit_post' capability with respect to the handling of comments, this should be using the 'edit_comment' capability introduced in 3.1

Attachments

admin-ajax.diff Download (1.6 KB) - added by ejdanderson 11 months ago.
Replaces edit_post capability with edit_comment. I believe the 'edit_post' capability is appropriate in the 'get-comments' and 'replyto-comment' cases.

Change History

Replaces edit_post capability with edit_comment. I believe the 'edit_post' capability is appropriate in the 'get-comments' and 'replyto-comment' cases.

  • Keywords 3.3-early added
  • Milestone changed from Awaiting Review to Future Release
  • Keywords 3.3-early removed
  • Milestone changed from Future Release to 3.2.1
  • Milestone changed from 3.2.1 to 3.2.2

In [18435]:

Use edit_comment rather than edit_post in admin-ajax. props ejdanderson, see #17909. for trunk.

Leaving this one open for 3.2.x for possible hardening.

  • Keywords fixed-major added
  • Cc devin@… added
  • Keywords fixed-major removed
  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from 3.2.2 to 3.3
Note: See TracTickets for help on using tickets.