mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
fix: disable direct download for shares
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
2ea3491240
commit
fb3e60862f
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Reference in a new issue