From 13980df12e3e281fac9cf98e96feb3334e6c768f 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 4369bb26c..df1bd6ba5 100644 --- a/lib/DAV/ACLPlugin.php +++ b/lib/DAV/ACLPlugin.php @@ -227,7 +227,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 cannot remove your own read permission.')); }