]> source.dussan.org Git - nextcloud-server.git/commitdiff
make sure that the owners home is mounted correctly
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 19 Nov 2013 17:28:51 +0000 (18:28 +0100)
committerBjoern Schiessle <schiessle@owncloud.com>
Tue, 19 Nov 2013 17:28:51 +0000 (18:28 +0100)
apps/files_encryption/lib/util.php

index 1af5e56e10bbf5e33de5bcb214b8dda9d9dc0e51..f9beb9de6701254fce830f91bfecbdd2e9c2fdd4 100644 (file)
@@ -84,6 +84,8 @@ class Util {
                                $this->privateKeyPath =
                                        '/owncloud_private_key/' . $this->userId . '.private.key'; // e.g. data/admin/admin.private.key
                                $this->isPublic = true;
+                               // make sure that the owners home is mounted
+                               \OC\Files\Filesystem::initMountPoints($GLOBALS['fileOwner']);
                        }
 
                } else {
@@ -99,6 +101,8 @@ class Util {
                                $this->publicKeyDir . '/' . $this->userId . '.public.key'; // e.g. data/public-keys/admin.public.key
                        $this->privateKeyPath =
                                $this->encryptionDir . '/' . $this->userId . '.private.key'; // e.g. data/admin/admin.private.key
+                       // make sure that the owners home is mounted
+                       \OC\Files\Filesystem::initMountPoints($this->userId);
                }
        }