nextcloud-server/apps/files_sharing/tests
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
..
Collaboration
Command
Controller fix(sharing): Allow reasonable control 4 'Hide download' on fed shares 2025-10-23 16:09:21 +01:00
External
Listener
Middleware
Migration refactor(dbal): Port away from remaining IQueryBuilder::execute calls 2025-10-13 13:44:15 +02:00
ApiTest.php
ApplicationTest.php
CacheTest.php
CapabilitiesTest.php
DeleteOrphanedSharesJobTest.php
EncryptedSizePropagationTest.php
EtagPropagationTest.php
ExpireSharesJobTest.php refactor(dbal): Port away from remaining IQueryBuilder::execute calls 2025-10-13 13:44:15 +02:00
ExternalStorageTest.php
GroupEtagPropagationTest.php
HelperTest.php
LockingTest.php
MountProviderTest.php
PropagationTestCase.php
SharedMountTest.php
SharedStorageTest.php
SharesReminderJobTest.php
ShareTest.php
SizePropagationTest.php
TestCase.php refactor(dbal): Port away from remaining IQueryBuilder::execute calls 2025-10-13 13:44:15 +02:00
UnshareChildrenTest.php
UpdaterTest.php
WatcherTest.php