Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Dec 2, 2025

Backport of #55811

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

When a logged-in user accesses a public share link in the same browser,

the system was incorrectly checking if that user's groups were excluded

from creating link shares. This caused share not found errors for users

in excluded groups, even though public shares should be accessible to anyone

with the link.

The group exclusion setting (`shareapi_allow_links_exclude_groups`) is

intended to restrict share creation, not share access. Public shares

are meant to be anonymous and accessible regardless of the viewer identity

or group membership.

We now check the exclusion for the share creator and not the viewer.

Signed-off-by: nfebe <[email protected]>

[skip ci]
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.

2 participants