nextcloud/apps/files_sharing
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
..
appinfo feat(files_sharing): reminder for link shares with expiration date 2024-09-03 13:37:17 +02:00
composer feat(files_sharing): reminder for link shares with expiration date 2024-09-03 13:37:17 +02:00
css chore(assets): recompile assets 2024-10-14 18:54:32 +02:00
img chore: Make app icons consistent Material Symbols with same settings 2024-07-10 15:53:45 +02:00
l10n Fix(l10n): Update translations from Transifex 2024-10-27 00:22:10 +00:00
lib fix: Adjust preview for view-only shares 2024-10-28 15:52:27 +01:00
src fix(files_sharing): Add correct context to translation 2024-10-21 12:46:56 +02:00
templates fix(files_sharing): show proper share not found error message 2024-08-06 16:25:10 +02:00
tests fix: Adjust preview for view-only shares 2024-10-28 15:52:27 +01:00
.l10nignore chore: Add SPDX header 2024-06-02 20:00:00 +02:00
openapi.json chore(deps): Bump nextcloud/openapi-extractor 2024-10-19 07:54:19 +02:00
openapi.json.license chore: Add SPDX header 2024-06-02 20:00:00 +02:00