Opened 9 years ago
Last modified 7 years ago
#41037 new defect (bug)
Comment author can't edit their comment(s) if they aren't the post author
| Reported by: | henry.wright | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Comments | Version: | |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: |
Description
In map_meta_cap(), the edit_comment meta capability is eventually mapped to edit_others_posts which results in comment authors not being able to edit their own comment(s) if their comment(s) are on a different user's post.
Note 1: The issue is specific to the author role. The editor role doesn't see the issue because this role has the edit_others_posts cap.
Note 2: The problem doesn't exist if the comment author is also the post author. This is because, in such cases, edit_comment is mapped to either edit_published_posts or edit_posts
Attachments (2)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related #47024