fix: disable direct download for shares

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/52133/head
Robin Appelman 1 year ago
parent 2ea3491240
commit fb3e60862f
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 5
      apps/files_sharing/lib/SharedStorage.php

@ -555,4 +555,9 @@ class SharedStorage extends Jail implements LegacyISharedStorage, ISharedStorage
$this->init();
return parent::getUnjailedPath($path);
}
public function getDirectDownload(string $path): array|false {
// disable direct download for shares
return [];
}
}

Loading…
Cancel
Save