Store user object later in the code

Signed-off-by: Vlastimil Pecinka <pecinka@email.cz>
This commit is contained in:
Vlastimil Pecinka 2019-02-06 11:36:08 +01:00 committed by Morris Jobke
parent 973ccd8c5c
commit 1c3abda280
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 2 additions and 1 deletions

View 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;
}
}