mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 06:37:56 -04:00
Merge pull request #52133 from nextcloud/no-shared-direct-download
fix: disable direct download for shares
This commit is contained in:
commit
1228cfd3a2
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