• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Deleting own post gives permission error, still works

Mike

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

Kent

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

AndyB

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