summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlastimil Pecinka <pecinka@email.cz>2019-02-06 11:36:08 +0100
committerMorris Jobke <hey@morrisjobke.de>2019-03-21 21:57:47 +0100
commit1c3abda280d66cd44ee46df63a46cb3281736776 (patch)
treeaaa59bae53eb550d8b700856b39d10fd37862a88
parent973ccd8c5c94d5a4c2effd2a8e8320983b119c8a (diff)
downloadnextcloud-server-1c3abda280d66cd44ee46df63a46cb3281736776.tar.gz
nextcloud-server-1c3abda280d66cd44ee46df63a46cb3281736776.zip
Store user object later in the code
Signed-off-by: Vlastimil Pecinka <pecinka@email.cz>
-rw-r--r--lib/private/Files/Mount/ObjectHomeMountProvider.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Files/Mount/ObjectHomeMountProvider.php b/lib/private/Files/Mount/ObjectHomeMountProvider.php
index 62669020884..009aadf30a9 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;
}
}