aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-03-05 17:26:25 +0100
committerGitHub <noreply@github.com>2024-03-05 17:26:25 +0100
commitfd4ca13867de94e3afc5cac55ac39c4235d6b737 (patch)
tree55687140e7a7ec2f3612092f5be291ed698d0337 /lib/private/Server.php
parentc18ffe0cad13dc5903cbb08ffbdb787f01db5e35 (diff)
parenta9ee278ec6059d164ed2f45b0eb304e940ffd588 (diff)
downloadnextcloud-server-fd4ca13867de94e3afc5cac55ac39c4235d6b737.tar.gz
nextcloud-server-fd4ca13867de94e3afc5cac55ac39c4235d6b737.zip
Merge pull request #43471 from nextcloud/cache-path-by-id
Cache path by id
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index df267839160..40c226bdf81 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -450,14 +450,17 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerService('RootFolder', function (ContainerInterface $c) {
$manager = \OC\Files\Filesystem::getMountManager();
$view = new View();
+ /** @var IUserSession $userSession */
+ $userSession = $c->get(IUserSession::class);
$root = new Root(
$manager,
$view,
- null,
+ $userSession->getUser(),
$c->get(IUserMountCache::class),
$this->get(LoggerInterface::class),
$this->get(IUserManager::class),
$this->get(IEventDispatcher::class),
+ $this->get(ICacheFactory::class),
);
$previewConnector = new \OC\Preview\WatcherConnector(