Fixed Deleting own post gives permission error, still works

I don't follow this bug report. What are the steps to reproduce? (Specific links being clicked and the output being displayed.)
 
Middle-clicking the delete button opens the delete post in a new page, rather than inline.
xenforo_self_delete1.webp
xenforo_self_delete2.webp
When you submit the form, it gives this error:
xenforo_self_delete3.webp
But it still works.
 
Steps to reproduce.

1) Log out of your admin account
2) Log in as a normal user
3) Create a new thread
4) Under post #1 click Delete
5) Confirm the delete

The error message is displayed because the thread that was deleted is no longer accessible. The fix will be to redirect to the forum display or forum home page.
 
It may be that the post is finished deleting (thus being non-existent, giving "You do not have permission to view this page") before the page loads in a new tab. I'm not entirely sure. It's probably unlikely, but it is possible.
 
Back
Top Bottom