1. 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

Discussion in 'Resolved Bug Reports' started by Kent, Apr 16, 2013.

  1. Kent

    Kent Active Member

  2. Brogan

    Brogan XenForo Moderator Staff Member

    I recall reporting this bug a long time ago.

    Let me see if I can find the original thread.
     
  3. Mike

    Mike 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.)
     
  4. Kent

    Kent Active Member

    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.
     
  5. AndyB

    AndyB 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.
     
  6. afistofirony

    afistofirony Member

    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.
     
  7. Mike

    Mike XenForo Developer Staff Member

    Fixed.
     

Share This Page