-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hideDownload ignored in createShare #19484
Comments
cc @rullzer |
This does not set hideDownload to true either: |
And this does not set hide_download to 1 either: |
Even if you set [oc_share].[hide_download] manually to |
This only applies to email shares. Link shares are working fine. Reproduced with 18.0.1 |
cc @nextcloud/server-triage (security) |
Most likely due to the merge of mail link shares and link shares |
Got it. PR incomming |
fixes #19484 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
fixes #19484 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
fixes #19484 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Nextcloud version 18.0
in file lib/private/Share20/Manager.php
692: public function createShare(\OCP\Share\IShare $share)
$share->hideDownload is ignored.
To reproduce:
$share = $this->shareManager->newShare();
$share->setSharedBy($userId);
$share->setNode($node);
$share->setShareType(Share::SHARE_TYPE_LINK);
$share->setHideDownload(true); //or 1
$this->shareManager->createShare($share);
The created share has hideDownload uncheck as seen in the GUI
The text was updated successfully, but these errors were encountered: