Fixed Deleting own post gives permission error, still works


XenForo moderator
Staff member
I recall reporting this bug a long time ago.

Let me see if I can find the original thread.


XenForo developer
Staff member
I don't follow this bug report. What are the steps to reproduce? (Specific links being clicked and the output being displayed.)


Active member
Middle-clicking the delete button opens the delete post in a new page, rather than inline.
When you submit the form, it gives this error:
But it still works.


Well-known member
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.