]> source.dussan.org Git - nextcloud-server.git/commitdiff
Store user object later in the code 14058/head
authorVlastimil Pecinka <pecinka@email.cz>
Wed, 6 Feb 2019 10:36:08 +0000 (11:36 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 21 Mar 2019 20:57:47 +0000 (21:57 +0100)
Signed-off-by: Vlastimil Pecinka <pecinka@email.cz>
lib/private/Files/Mount/ObjectHomeMountProvider.php

index 62669020884d9b3787ec38878cd253b151e72424..009aadf30a943c80f4c3c803eec317e87aecbfb3 100644 (file)
@@ -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;
        }
 }