diff options
author | Robin Appelman <robin@icewind.nl> | 2019-03-13 13:54:10 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2019-03-13 13:54:10 +0300 |
commit | 77a9a839e07668353a0536cd385ef27be3ea7bf1 (patch) | |
tree | aebb79ed01d2493b8700fbe983b2fd7401493b4d /lib/Command/Scan.php | |
parent | 836e6eee35fca83337cc59a49fbfd2e87eb5218b (diff) |
Dont limit permissions while scanning
Fixs #266
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/Command/Scan.php')
-rw-r--r-- | lib/Command/Scan.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Command/Scan.php b/lib/Command/Scan.php index e74be455..ffb8f2e4 100644 --- a/lib/Command/Scan.php +++ b/lib/Command/Scan.php @@ -24,6 +24,7 @@ namespace OCA\GroupFolders\Command; use OC\Core\Command\Base; use OCA\GroupFolders\Folder\FolderManager; use OCA\GroupFolders\Mount\MountProvider; +use OCP\Constants; use OCP\Files\IRootFolder; use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Input\InputArgument; @@ -56,7 +57,7 @@ class Scan extends Base { $folderId = $input->getArgument('folder_id'); $folder = $this->folderManager->getFolder($folderId, $this->rootFolder->getMountPoint()->getNumericStorageId()); if ($folder) { - $mount = $this->mountProvider->getMount($folder['id'], '/' . $folder['mount_point'], $folder['permissions'], $folder['quota']); + $mount = $this->mountProvider->getMount($folder['id'], '/' . $folder['mount_point'], Constants::PERMISSION_ALL, $folder['quota']); $scanner = $mount->getStorage()->getScanner(); $scanner->listen('\OC\Files\Cache\Scanner', 'scanFile', function ($path) use ($output) { |