mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
revert: do not unify hide-download and prevent-download permissions
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
a799d8dccf
commit
47d1afbb7f
1 changed files with 0 additions and 5 deletions
|
|
@ -1293,16 +1293,11 @@ class ShareAPIController extends OCSController {
|
|||
|| $share->getShareType() === IShare::TYPE_EMAIL) {
|
||||
|
||||
// Update hide download state
|
||||
$attributes = $share->getAttributes() ?? $share->newAttributes();
|
||||
if ($hideDownload === 'true') {
|
||||
$share->setHideDownload(true);
|
||||
$attributes->setAttribute('permissions', 'download', false);
|
||||
} elseif ($hideDownload === 'false') {
|
||||
$share->setHideDownload(false);
|
||||
$attributes->setAttribute('permissions', 'download', true);
|
||||
}
|
||||
$share->setAttributes($attributes);
|
||||
|
||||
|
||||
// If either manual permissions are specified or publicUpload
|
||||
// then we need to also update the permissions of the share
|
||||
|
|
|
|||
Loading…
Reference in a new issue