Skip to content

Commit 9534730

Browse files
Merge pull request #3700 from nextcloud/backport/3699/stable30
[stable30] fix(ACLPlugin): Use correct path to test new permissions
2 parents 65709de + b6e2932 commit 9534730

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
@@ -220,7 +220,7 @@ public function propPatch(string $path, PropPatch $propPatch): void {
220220
}
221221

222222
$aclManager = $this->aclManagerFactory->getACLManager($this->user);
223-
$newPermissions = $aclManager->testACLPermissionsForPath($fileInfo->getPath(), $rules);
223+
$newPermissions = $aclManager->testACLPermissionsForPath($path, $rules);
224224
if (!($newPermissions & Constants::PERMISSION_READ)) {
225225
throw new BadRequest($this->l10n->t('You can not remove your own read permission.'));
226226
}

0 commit comments

Comments
 (0)