Skip to:
Content

bbPress.org

Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#2685 closed defect (bug) (fixed)

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

Reported by: netweb's profile netweb Owned by: johnjamesjacoby's profile johnjamesjacoby
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.5.4
Component: API - Roles/Capabilities 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 10 years ago.

Download all attachments as: .zip

Change History (5)

@netweb
10 years ago

#1 @netweb
10 years ago

  • Keywords has-patch added

#2 @lgladdy
10 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
10 years ago

  • Owner set to johnjamesjacoby
  • Resolution set to fixed
  • Status changed from new to 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
8 years ago

In 6265:

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

See #2685

Note: See TracTickets for help on using tickets.