Correctly ignore remote shares aswell

This commit is contained in:
Joas Schilling 2015-06-02 12:33:51 +02:00
parent 50a31fa8f9
commit be1f319511

View file

@ -403,7 +403,10 @@ class Util {
'mountPoint' => $mountPoint, 'mountPoint' => $mountPoint,
'mount' => $mount]; 'mount' => $mount];
if (!$storage->instanceOfStorage('OC\Files\Storage\Shared')) { if (!$storage->instanceOfStorage('OC\Files\Storage\Shared')
&& !$storage->instanceOfStorage('OCA\Files_Sharing\External\Storage')
&& !$storage->instanceOfStorage('OC\Files\Storage\OwnCloud')) {
$manager = \OC::$server->getEncryptionManager(); $manager = \OC::$server->getEncryptionManager();
$user = \OC::$server->getUserSession()->getUser(); $user = \OC::$server->getUserSession()->getUser();
$logger = \OC::$server->getLogger(); $logger = \OC::$server->getLogger();