Skip to content

Commit 03de4d1

Browse files
Merge pull request #3701 from nextcloud/backport/3699/stable31
[stable31] fix(ACLPlugin): Use correct path to test new permissions
2 parents c424e77 + 13980df commit 03de4d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/DAV/ACLPlugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function propPatch(string $path, PropPatch $propPatch): void {
227227
}
228228

229229
$aclManager = $this->aclManagerFactory->getACLManager($this->user);
230-
$newPermissions = $aclManager->testACLPermissionsForPath($fileInfo->getPath(), $rules);
230+
$newPermissions = $aclManager->testACLPermissionsForPath($path, $rules);
231231
if (!($newPermissions & Constants::PERMISSION_READ)) {
232232
throw new BadRequest($this->l10n->t('You cannot remove your own read permission.'));
233233
}

0 commit comments

Comments
 (0)