Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Nov 4, 2025

Backport of PR #55251

@backportbot backportbot bot requested a review from a team as a code owner November 4, 2025 08:24
@backportbot backportbot bot requested review from Altahrim, ArtificialOwl, artonge, come-nc, icewind1991, nfebe and salmart-dev and removed request for a team November 4, 2025 08:24
@backportbot backportbot bot added this to the Nextcloud 32.0.2 milestone Nov 4, 2025
@nfebe nfebe enabled auto-merge November 4, 2025 08:25
@nfebe nfebe requested a review from maximelehericy November 4, 2025 08:25
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 <[email protected]>
@nfebe nfebe force-pushed the backport/55251/stable32 branch from 8dece45 to 299662e Compare November 4, 2025 13:03
@blizzz blizzz mentioned this pull request Nov 10, 2025
9 tasks
@nfebe nfebe merged commit 90d38ec into stable32 Nov 13, 2025
205 of 207 checks passed
@nfebe nfebe deleted the backport/55251/stable32 branch November 13, 2025 13:07
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