Skip to:
Content

bbPress.org

Opened 12 years ago

Closed 11 years ago

Last modified 10 years ago

#2685 closed defect (bug) (fixed)

Users cannot delete their own topics or replies when respective capabilities are assigned

Reported by: netweb Owned by: johnjamesjacoby
Priority: normal Milestone: 2.6
Component: API - Roles/Capabilities Version: 2.5.4
Severity: normal Keywords: has-patch
Cc:

Description

Users given either delete_topic or delete_reply capability cannot delete their own topics or replies respectively.

Confirmed and reported here: ​https://bbpress.org/forums/topic/delete-topic-function/

Hat tip @gusrb84 for the attached patch

Attachments (1)

2685.diff​ (1.2 KB ) - added by netweb 12 years ago.

Download all attachments as: .zip

Change History (5)

#1 @netweb
12 years ago

  • Keywords has-patch added

#2 @lgladdy
12 years ago

I've hit this block today and would love to see this being added to the next release - it doesn't make sense that there is already a check for delete_reply and delete_topic but you can't actually apply that to a role!

#3 @johnjamesjacoby
11 years ago

  • Owner set to johnjamesjacoby
  • Resolution → fixed
  • Status new → closed

In 5852:

Capabilities: add delete_posts mappings to delete topic & reply checks.

This changeset ensures that capable users can delete their own topics & replies, when these capabilities are explicitly allowed already.

Props netweb, gusrb84. Fixes #2685.

#4 @netweb
10 years ago

In 6265:

Capabilities: Fix inline docs copy pasta introduced in [5852]

See #2685

Note: See TracTickets for help on using tickets.