diff options
author | Robin Appelman <robin@icewind.nl> | 2024-03-05 17:26:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 17:26:25 +0100 |
commit | fd4ca13867de94e3afc5cac55ac39c4235d6b737 (patch) | |
tree | 55687140e7a7ec2f3612092f5be291ed698d0337 /lib/private/Server.php | |
parent | c18ffe0cad13dc5903cbb08ffbdb787f01db5e35 (diff) | |
parent | a9ee278ec6059d164ed2f45b0eb304e940ffd588 (diff) | |
download | nextcloud-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.php | 5 |
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( |