|
@@ 96-104 (lines=9) @@
|
| 93 |
|
$userGlobalStoragesService->setUser($user); |
| 94 |
|
$userStoragesService->setUser($user); |
| 95 |
|
|
| 96 |
|
foreach ($userGlobalStoragesService->getStorages() as $storage) { |
| 97 |
|
/** @var \OCA\Files_External\Lib\StorageConfig $storage */ |
| 98 |
|
$mountPoint = '/'.$uid.'/files'.$storage->getMountPoint(); |
| 99 |
|
$mountEntry = self::prepareMountPointEntry($storage, false); |
| 100 |
|
foreach ($mountEntry['options'] as &$option) { |
| 101 |
|
$option = self::setUserVars($uid, $option); |
| 102 |
|
} |
| 103 |
|
$mountPoints[$mountPoint] = $mountEntry; |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
foreach ($userStoragesService->getStorages() as $storage) { |
| 107 |
|
$mountPoint = '/'.$uid.'/files'.$storage->getMountPoint(); |
|
@@ 106-113 (lines=8) @@
|
| 103 |
|
$mountPoints[$mountPoint] = $mountEntry; |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
foreach ($userStoragesService->getStorages() as $storage) { |
| 107 |
|
$mountPoint = '/'.$uid.'/files'.$storage->getMountPoint(); |
| 108 |
|
$mountEntry = self::prepareMountPointEntry($storage, true); |
| 109 |
|
foreach ($mountEntry['options'] as &$option) { |
| 110 |
|
$option = self::setUserVars($uid, $option); |
| 111 |
|
} |
| 112 |
|
$mountPoints[$mountPoint] = $mountEntry; |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
$userGlobalStoragesService->resetUser(); |
| 116 |
|
$userStoragesService->resetUser(); |