nextcloud-server/apps/files_sharing/lib/Controller
nfebe 64016898d5 fix(sharing): Allow reasonable control 4 'Hide download' on fed shares
When creating public links from federated shares, users should be able to set
the 'Hide download' option independently as long as they are more restrictive
than the original share permissions.

Previously, the `checkInheritedAttributes` method was ignoring user preferences
and always overriding the hideDownload setting based solely on inherited
permissions, preventing users from disabling downloads even when the parent
share allowed them.

This fix implements some sort of inheritance logic:
- Users can only be MORE restrictive than parent shares, never LESS restrictive
- If parent hides downloads -> child MUST hide downloads (enforced)
- If parent allows downloads -> child can CHOOSE to hide or allow downloads
- If parent forbids downloads entirely -> child cannot enable downloads

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-10-23 16:09:21 +07:00
..
AcceptController.php
DeletedShareAPIController.php
ExternalSharesController.php
PublicPreviewController.php
RemoteController.php
SettingsController.php
ShareAPIController.php fix(sharing): Allow reasonable control 4 'Hide download' on fed shares 2025-10-23 16:09:21 +07:00
ShareController.php fix(dav): allow multiple link shares token in session 2025-10-23 13:10:39 +07:00
ShareInfoController.php
ShareesAPIController.php