server/tests/Core
Ferdinand Thiessen c84c256261
fix: Adjust preview for view-only shares
Previously there was a different behavior for public shares (link-shares) and internal shares,
if the user disabled the view permission.
The legacy UI for public shares simply "disabled" the context menu and hided all download actions.
With Nextcloud 31 all share types use the consistent permissions attributes,
which simplifies code, but caused a regression: Images can no longer been viewed.

Because on 30 and before the attribute was not set, previews for view-only files
were still allowed. Now with 31 we need a new way to allow "viewing" shares.

So this is allowing previews for those files, but only for internal usage.
This is done by settin a special header, which only works with custom requests,
and not by opening the URL directly.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-10-28 15:52:27 +01:00
..
Command Merge pull request #48537 from nextcloud/add-command-to-cleanup-preview 2024-10-14 08:57:00 +02:00
Controller fix: Adjust preview for view-only shares 2024-10-28 15:52:27 +01:00
Data refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Middleware refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Service chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00