Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(ACLPlugin): Use correct path to test new permissions
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin authored and backportbot[bot] committed Mar 18, 2025
commit b6e29326d5255d0de20d0a7175e025880753fd9a
2 changes: 1 addition & 1 deletion lib/DAV/ACLPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.'));
}
Expand Down
Loading