Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-12078

"Can permanently delete own posts" permission has no effect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.0-b1
    • 3.1.0-dev, 3.1.0-a2
    • Posting
    • None

      When a user with the f_delete permission attempts to permanently delete a post, the option is ignored and the post is soft-deleted instead. The culprit seems to be the following in posting.php which only checks for m_delete before switching to soft-delete mode.

      // If the user is not allowed to delete the post, we try to soft delete it, so we overwrite the mode here.
      if ($mode == 'delete' && (($confirm && !$request->is_set_post('delete_permanent')) || !$auth->acl_get('m_delete', $forum_id)))
      {
      	$mode = 'soft_delete';
      }
      

            prototech prototech [X] (Inactive)
            prototech prototech [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: