nextcloud/apps/files_sharing
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 +01:00
..
appinfo chore: Bump app versions and requirements 2025-09-04 09:11:05 +02:00
composer fix(files_sharing): Move ConfigLexicon to Config dir, update sharing input 2025-05-06 14:28:01 +01:00
css chore(files_sharing): remove leftover of legacy files ui 2025-07-31 21:09:43 +02:00
img chore: Make app icons consistent Material Symbols with same settings 2024-07-10 15:53:45 +02:00
l10n fix(l10n): Update translations from Transifex 2025-10-21 16:52:04 +00:00
lib fix(sharing): Allow reasonable control 4 'Hide download' on fed shares 2025-10-23 16:09:21 +01:00
src fix(files_sharing): Only send password on change 2025-10-21 16:54:55 +01:00
templates chore(files_sharing): remove leftover of legacy files ui 2025-07-31 21:09:43 +02:00
tests fix(sharing): Allow reasonable control 4 'Hide download' on fed shares 2025-10-23 16:09:21 +01:00
.l10nignore chore: Add SPDX header 2024-06-02 20:00:00 +02:00
openapi.json chore(deps): Update nextcloud/openapi-extractor to v1.8.3 2025-09-01 16:04:54 +02:00
openapi.json.license chore: Add SPDX header 2024-06-02 20:00:00 +02:00