Skip to content

Commit 65ba1eb

Browse files
Merge pull request #3699 from nextcloud/fix/acl-plugin/test-permissions-path
fix(ACLPlugin): Use correct path to test new permissions
2 parents 16ea27c + 4d13670 commit 65ba1eb

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)