Skip to content

Commit

Permalink
fix(ACLPlugin): Fix PROPFIND acl-list when rules are empty
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Sep 30, 2024
1 parent 3b7bf2f commit d884ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DAV/ACLPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function propFind(PropFind $propFind, INode $node): void {
return;
}

$propFind->handle(self::ACL_LIST, function () use ($fileInfo, $mount): array {
$propFind->handle(self::ACL_LIST, function () use ($fileInfo, $mount): ?array {
$path = trim($mount->getSourcePath() . '/' . $fileInfo->getInternalPath(), '/');
if ($this->isAdmin($fileInfo->getPath())) {
$rules = $this->ruleManager->getAllRulesForPaths($mount->getNumericStorageId(), [$path]);
Expand Down

0 comments on commit d884ff4

Please sign in to comment.