-
Type:
Bug
-
Status: Closed (View Workflow)
-
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
-
GitHub Pull Request URL:
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';
|
}
|