From fc73b67d0796038a25023c24e286e4abed387dd9 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 15 Mar 2021 21:37:11 +0100 Subject: [PATCH] fix wrong method call to check restore permissions fixes #1349 Signed-off-by: Robin Appelman --- lib/Trash/TrashBackend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Trash/TrashBackend.php b/lib/Trash/TrashBackend.php index ea66b01a6..e580847c7 100644 --- a/lib/Trash/TrashBackend.php +++ b/lib/Trash/TrashBackend.php @@ -101,7 +101,7 @@ public function restoreItem(ITrashItem $item) { if ($node === null) { throw new NotFoundException(); } - if (!$this->userHasACLAccessToPath($item->getUser(), $folderId . '/' . $item->getOriginalLocation(), Constants::PERMISSION_UPDATE)) { + if (!$this->userHasAccessToPath($item->getUser(), $folderId . '/' . $item->getOriginalLocation(), Constants::PERMISSION_UPDATE)) { throw new NotPermittedException(); } $folderPermissions = $this->folderManager->getFolderPermissionsForUser($item->getUser(), (int)$folderId);