nextcloud-server/tests/lib/Share20
nfebe 6bccaf778a 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-02 09:45:18 +07:00
..
DefaultShareProviderTest.php chore: Run rector with new rules for fetch 2025-11-18 17:45:57 +07:00
LegacyHooksTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
ManagerTest.php fix(sharing): Allow public share access for everyone 2025-12-02 09:45:18 +07:00
ShareByMailProviderTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
ShareHelperTest.php chore: run rector 2025-07-01 22:45:52 +07:00
ShareTest.php chore: run rector 2025-07-01 22:45:52 +07:00