Skip to content

Commit

Permalink
Store user object later in the code
Browse files Browse the repository at this point in the history
Signed-off-by: Vlastimil Pecinka <pecinka@email.cz>
  • Loading branch information
vpecinka authored and Backportbot committed Mar 21, 2019
1 parent 2e30a5d commit 7cab488
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/Files/Mount/ObjectHomeMountProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ private function getMultiBucketObjectStoreConfig(IUser $user) {
if (!isset($config['arguments'])) {
$config['arguments'] = [];
}
$config['arguments']['user'] = $user;

$bucket = $this->config->getUserValue($user->getUID(), 'homeobjectstore', 'bucket', null);

Expand All @@ -134,6 +133,8 @@ private function getMultiBucketObjectStoreConfig(IUser $user) {
// instantiate object store implementation
$config['arguments']['objectstore'] = new $config['class']($config['arguments']);

$config['arguments']['user'] = $user;

return $config;
}
}

0 comments on commit 7cab488

Please sign in to comment.