Merge pull request #8455 from nextcloud/proper_mount_type_external

Properly set the mount type for external storages
This commit is contained in:
Morris Jobke 2018-02-26 17:19:54 +01:00 committed by GitHub
commit 950e7e0467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -168,7 +168,7 @@ class ConfigAdapter implements IMountProvider {
$storageConfig->getMountOptions() $storageConfig->getMountOptions()
); );
} else { } else {
return new MountPoint( return new ExternalMountPoint(
$storage, $storage,
'/' . $user->getUID() . '/files' . $storageConfig->getMountPoint(), '/' . $user->getUID() . '/files' . $storageConfig->getMountPoint(),
null, null,

View File

@ -24,14 +24,14 @@
namespace OCA\Files_External\Lib; namespace OCA\Files_External\Lib;
use OC\Files\Mount\MountPoint;
use OC\Files\Mount\MoveableMount; use OC\Files\Mount\MoveableMount;
use OCA\Files_External\Config\ExternalMountPoint;
use OCA\Files_External\Service\UserStoragesService; use OCA\Files_External\Service\UserStoragesService;
/** /**
* Person mount points can be moved by the user * Person mount points can be moved by the user
*/ */
class PersonalMount extends MountPoint implements MoveableMount { class PersonalMount extends ExternalMountPoint implements MoveableMount {
/** @var UserStoragesService */ /** @var UserStoragesService */
protected $storagesService; protected $storagesService;