From 7cab488c6f68586dc55d02eaf16c381ddf416bce Mon Sep 17 00:00:00 2001 From: Vlastimil Pecinka Date: Wed, 6 Feb 2019 11:36:08 +0100 Subject: [PATCH] Store user object later in the code Signed-off-by: Vlastimil Pecinka --- lib/private/Files/Mount/ObjectHomeMountProvider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/Files/Mount/ObjectHomeMountProvider.php b/lib/private/Files/Mount/ObjectHomeMountProvider.php index 6266902088..009aadf30a 100644 --- a/lib/private/Files/Mount/ObjectHomeMountProvider.php +++ b/lib/private/Files/Mount/ObjectHomeMountProvider.php @@ -110,7 +110,6 @@ class ObjectHomeMountProvider implements IHomeMountProvider { if (!isset($config['arguments'])) { $config['arguments'] = []; } - $config['arguments']['user'] = $user; $bucket = $this->config->getUserValue($user->getUID(), 'homeobjectstore', 'bucket', null); @@ -134,6 +133,8 @@ class ObjectHomeMountProvider implements IHomeMountProvider { // instantiate object store implementation $config['arguments']['objectstore'] = new $config['class']($config['arguments']); + $config['arguments']['user'] = $user; + return $config; } }