From c8c7ffdd5eccfcfdcdb8bf275fd061d68b2528bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Mon, 20 Apr 2026 15:56:43 +0200 Subject: [PATCH] fix: Adjust to API change of "getDavPermissions" in Nextcloud 34 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since Nextcloud 34 "DavUtil::getDavPermissions" requires the parent of the node as its second parameter. Signed-off-by: Daniel Calviño Sánchez --- lib/Sabre/PropFindPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sabre/PropFindPlugin.php b/lib/Sabre/PropFindPlugin.php index 1768c017a..8b94659e0 100644 --- a/lib/Sabre/PropFindPlugin.php +++ b/lib/Sabre/PropFindPlugin.php @@ -92,7 +92,7 @@ public function propFind(PropFind $propFind, INode $node): void { $propFind->handle(self::FAVORITE_PROPERTYNAME, fn (): int => $node->isFavorite() ? 1 : 0); $propFind->handle(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, fn () => json_encode($this->previewManager->isAvailable($fileInfo))); $propFind->handle(FilesPlugin::PERMISSIONS_PROPERTYNAME, function () use ($node): string { - $permissions = DavUtil::getDavPermissions($node->getFileInfo()); + $permissions = DavUtil::getDavPermissions($node->getFileInfo(), $node->getFileInfo()->getParent()); $filteredPermissions = str_replace('R', '', $permissions); if ($node instanceof PublicAlbumPhoto) {