Skip to:

Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#2685 closed defect (fixed)

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

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


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

Confirmed and reported here:

Hat tip @gusrb84 for the attached patch

Attachments (1)

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

Download all attachments as: .zip

Change History (5)

5 years ago

#1 @netweb
5 years ago

  • Keywords has-patch added

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

In 6265:

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

See #2685

Note: See TracTickets for help on using tickets.