nextcloud/apps/files_sharing/lib
nfebe 299662e05d 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-04 14:03:06 +01:00
..
Activity chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
AppInfo fix(files_sharing): Move ConfigLexicon to Config dir, update sharing input 2025-05-06 14:28:01 +01:00
BackgroundJob chore(db): Correctly apply query types 2024-10-17 09:21:07 +02:00
Collaboration chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Command feat: allow filtering sharing:delete-orphan-shares by share owner or target 2025-08-27 21:46:42 +02:00
Config feat(files_sharing): Toggle display for trusted server shares 2025-07-29 13:24:49 +01:00
Controller fix(sharing): Allow reasonable control 4 'Hide download' on fed shares 2025-11-04 14:03:06 +01:00
Event refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +02:00
Exceptions chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
External fix(ocm): probe standardized .well-known endpoint 2025-10-29 06:35:51 +00:00
Listener feat(files_sharing): show GS users similar to internal users 2025-08-11 09:18:16 +00:00
Middleware chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Migration fix(federation): Increase the size of owner to allow oCIS cloud ids 2025-10-27 16:39:44 +01:00
Notification chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Settings fix(files_sharing): ensure share folder exists in the settings 2025-07-16 18:23:12 +02:00
ShareBackend chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Cache.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Capabilities.php feat(preset): share password protection 2025-08-12 14:37:32 -01:00
DefaultPublicShareTemplateProvider.php fix(encryption): Correctly set encrypted to 0 when copying 2025-09-08 22:35:57 +02:00
DeleteOrphanedSharesJob.php refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +02:00
ExpireSharesJob.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Helper.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Hooks.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
ISharedMountPoint.php chore: Add SPDX header 2024-06-06 22:53:41 +02:00
ISharedStorage.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
MountProvider.php perf(mounts): avoid array_merge in mounts loop 2025-09-09 14:33:21 +00:00
OrphanHelper.php feat: allow filtering sharing:delete-orphan-shares by share owner or target 2025-08-27 21:46:42 +02:00
ResponseDefinitions.php feat(files_sharing): Toggle display for trusted server shares 2025-07-29 13:24:49 +01:00
Scanner.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
SharedMount.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
SharedStorage.php fix: make share recursion error more informative 2025-10-24 12:20:52 +00:00
SharesReminderJob.php chore(deps): Bump nextcloud/coding-standard in /vendor-bin/cs-fixer 2024-10-19 07:57:35 +02:00
Updater.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
ViewOnly.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00