Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Nov 4, 2025

Backport of PR #55251

@backportbot backportbot bot requested review from artonge, come-nc and nfebe November 4, 2025 08:24
@backportbot backportbot bot added this to the Nextcloud 31.0.11 milestone Nov 4, 2025
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>
@nfebe nfebe enabled auto-merge November 4, 2025 08:26
@nfebe nfebe requested a review from maximelehericy November 4, 2025 08:26
This was referenced Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants