From b6e29326d5255d0de20d0a7175e025880753fd9a Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 18 Mar 2025 11:20:53 +0100 Subject: [PATCH] fix(ACLPlugin): Use correct path to test new permissions Signed-off-by: provokateurin --- lib/DAV/ACLPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DAV/ACLPlugin.php b/lib/DAV/ACLPlugin.php index 9a193f7f5..84c3c7fe5 100644 --- a/lib/DAV/ACLPlugin.php +++ b/lib/DAV/ACLPlugin.php @@ -220,7 +220,7 @@ public function propPatch(string $path, PropPatch $propPatch): void { } $aclManager = $this->aclManagerFactory->getACLManager($this->user); - $newPermissions = $aclManager->testACLPermissionsForPath($fileInfo->getPath(), $rules); + $newPermissions = $aclManager->testACLPermissionsForPath($path, $rules); if (!($newPermissions & Constants::PERMISSION_READ)) { throw new BadRequest($this->l10n->t('You can not remove your own read permission.')); }