fix: block downloading of files with 'hide download' option#50842
fix: block downloading of files with 'hide download' option#50842AIlkiv wants to merge 1 commit intonextcloud:masterfrom
Conversation
Signed-off-by: ailkiv <a.ilkiv.ye@gmail.com>
|
This is not fully true as hide download and forbid download are two distinct permissions on Nextcloud. |
@susnux In any case, as I wrote in the description, this is not a solution to a global issue, this fix reduces the number of problematic places. |
They are. There is
But this is checking the wrong permission. |
|
Thats right, because public shares and internal shares have two different download permissions: |
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |

Summary
If you make a public share with the “hide download” option, the download button is hidden, but the direct link allows you to get the file.
This fix fixes it.
I understand that there are different ways to download a file. The point here is to reduce the number of such places.
TODO
Create link for image

Example http://nextcloud.local/index.php/s/p98WonbBMd8PFcX
Can be downloaded at the link http://nextcloud.local/index.php/s/p98WonbBMd8PFcX**/download**
After fix

Checklist