Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-12078

"Can permanently delete own posts" permission has no effect

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.1.0-dev, 3.1.0-a2
    • 3.1.0-b1
    • Posting
    • None

    Description

      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';
      }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: