diff --git a/lib/private/Files/Mount/ObjectHomeMountProvider.php b/lib/private/Files/Mount/ObjectHomeMountProvider.php index 62669020884d9..009aadf30a943 100644 --- a/lib/private/Files/Mount/ObjectHomeMountProvider.php +++ b/lib/private/Files/Mount/ObjectHomeMountProvider.php @@ -110,7 +110,6 @@ private function getMultiBucketObjectStoreConfig(IUser $user) { if (!isset($config['arguments'])) { $config['arguments'] = []; } - $config['arguments']['user'] = $user; $bucket = $this->config->getUserValue($user->getUID(), 'homeobjectstore', 'bucket', null); @@ -134,6 +133,8 @@ private function getMultiBucketObjectStoreConfig(IUser $user) { // instantiate object store implementation $config['arguments']['objectstore'] = new $config['class']($config['arguments']); + $config['arguments']['user'] = $user; + return $config; } }