nextcloud-server/apps/files_sharing
nfebe 8725129312 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-11-28 13:42:45 +07:00
..
appinfo fix(federation): Increase the size of owner to allow oCIS cloud ids 2025-10-27 16:38:48 +07:00
composer fix(federation): Increase the size of owner to allow oCIS cloud ids 2025-10-27 16:38:48 +07:00
css chore: Compile assets 2024-11-19 09:42:13 +07:00
img
l10n fix(l10n): Update translations from Transifex 2025-11-27 00:13:53 +07:00
lib fix(sharing): Allow reasonable control 4 'Hide download' on fed shares 2025-11-28 13:42:45 +07:00
src fix: Make TrustedServers optional in RemotePlugin 2025-11-11 12:09:05 +07:00
templates fix(files_sharing): show proper share not found error message 2024-08-06 16:25:10 +07:00
tests fix(sharing): Allow reasonable control 4 'Hide download' on fed shares 2025-11-28 13:42:45 +07:00
.l10nignore
openapi.json feat(files_sharing): Toggle display for trusted server shares 2025-08-01 12:18:36 +07:00
openapi.json.license