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

"Can permanently delete own posts" permission has no effect

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-dev, 3.1.0-a2
    • Fix Version/s: 3.1.0-b1
    • Component/s: Posting
    • Labels:
      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';
      }
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            prototech prototech
            Reporter:
            prototech prototech
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development