From bde81aae27fa8466fa277153bbd76ffb0288017e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Sat, 19 Sep 2026 11:56:50 +0200 Subject: [PATCH] fix: Allowlist trashbin hooks which are still in use MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/private/legacy/OC_Hook.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/legacy/OC_Hook.php b/lib/private/legacy/OC_Hook.php index 1c529331709da..31eb5884404f0 100644 --- a/lib/private/legacy/OC_Hook.php +++ b/lib/private/legacy/OC_Hook.php @@ -57,6 +57,8 @@ class OC_Hook { ['OC\Files\Storage\Shared','file_put_contents'], [\OCA\Files_Trashbin\Trashbin::class,'post_moveToTrash'], [\OCA\Files_Trashbin\Trashbin::class,'post_restore'], + ['OCP\Trashbin','delete'], + ['OCP\Trashbin','preDelete'], ['OCP\Trashbin','preDeleteAll'], ['OCP\Trashbin','deleteAll'], ['OCP\Versions','rollback'],