nextcloud-server/lib/private/Share20
nfebe 58991b1b19 fix(sharing): Allow public share access for everyone
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 <fenn25.fn@gmail.com>
2025-12-03 19:53:17 +07:00
..
Exception chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
DefaultShareProvider.php Merge pull request #53945 from nextcloud/chore/share-constants 2025-07-29 13:31:42 +07:00
GroupDeletedListener.php fix(Share20): Convert broken hooks to IEventListener 2025-03-03 12:49:01 +07:00
LegacyHooks.php fix(IShare): Add missing getParent and setParent methods 2025-07-29 11:27:04 +07:00
Manager.php fix(sharing): Allow public share access for everyone 2025-12-03 19:53:17 +07:00
ProviderFactory.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
PublicShareTemplateFactory.php chore: Add SPDX header 2024-05-24 13:11:22 +07:00
Share.php fix(IShare): Add missing getParent and setParent methods 2025-07-29 11:27:04 +07:00
ShareAttributes.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
ShareDisableChecker.php fix(sharing): fix json decoding the list of groups excluded from sharing 2025-06-16 08:30:31 +07:00
ShareHelper.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
UserDeletedListener.php fix(Share20): Convert broken hooks to IEventListener 2025-03-03 12:49:01 +07:00
UserRemovedListener.php chore: Add SPDX header 2024-05-24 13:11:22 +07:00