From d884ff44a2b75d8828cba58e50d5f1f5974b32b5 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Mon, 30 Sep 2024 15:43:54 +0200 Subject: [PATCH] fix(ACLPlugin): Fix PROPFIND acl-list when rules are empty Signed-off-by: provokateurin --- lib/DAV/ACLPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DAV/ACLPlugin.php b/lib/DAV/ACLPlugin.php index caa99880a..3def992e4 100644 --- a/lib/DAV/ACLPlugin.php +++ b/lib/DAV/ACLPlugin.php @@ -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]);