Merge pull request #14795 from nextcloud/backport/14058/stable15

[stable15] Avoid replacement by user object
This commit is contained in:
Morris Jobke 2019-03-22 01:26:16 +01:00 committed by GitHub
commit 085741a795
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,6 @@ class ObjectHomeMountProvider implements IHomeMountProvider {
if (!isset($config['arguments'])) { if (!isset($config['arguments'])) {
$config['arguments'] = []; $config['arguments'] = [];
} }
$config['arguments']['user'] = $user;
$bucket = $this->config->getUserValue($user->getUID(), 'homeobjectstore', 'bucket', null); $bucket = $this->config->getUserValue($user->getUID(), 'homeobjectstore', 'bucket', null);
@ -134,6 +133,8 @@ class ObjectHomeMountProvider implements IHomeMountProvider {
// instantiate object store implementation // instantiate object store implementation
$config['arguments']['objectstore'] = new $config['class']($config['arguments']); $config['arguments']['objectstore'] = new $config['class']($config['arguments']);
$config['arguments']['user'] = $user;
return $config; return $config;
} }
} }