nextcloud/apps
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
..
admin_audit chore(apps): Apply new rector configuration to autouse classes 2024-10-15 10:40:25 +02:00
cloud_federation_api refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +02:00
comments Fix(l10n): Update translations from Transifex 2024-10-22 11:39:20 +00:00
contactsinteraction fix: Adjust Entity types 2024-10-17 18:31:44 +02:00
dashboard chore(apps): Apply new rector configuration to autouse classes 2024-10-15 10:40:25 +02:00
dav feat: Allow WebP content type in PhotoCache 2024-10-28 13:43:01 +01:00
encryption Fix(l10n): Update translations from Transifex 2024-10-24 00:20:18 +00:00
federatedfilesharing Fix(l10n): Update translations from Transifex 2024-10-27 00:22:10 +00:00
federation Fix(l10n): Update translations from Transifex 2024-10-26 00:20:19 +00:00
files Fix(l10n): Update translations from Transifex 2024-10-28 00:20:34 +00:00
files_external Merge pull request #48614 from nextcloud/refactor/storage/constructors 2024-10-28 10:19:41 +01:00
files_reminders Fix(l10n): Update translations from Transifex 2024-10-28 00:20:34 +00:00
files_sharing fix: Adjust preview for view-only shares 2024-10-28 15:52:27 +01:00
files_trashbin fix(apps): Fix wrong or missing casts 2024-10-23 17:08:29 +02:00
files_versions Fix(l10n): Update translations from Transifex 2024-10-27 00:22:10 +00:00
lookup_server_connector refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +02:00
oauth2 Fix(l10n): Update translations from Transifex 2024-10-24 00:20:18 +00:00
provisioning_api Fix(l10n): Update translations from Transifex 2024-10-27 00:22:10 +00:00
settings fix(app-store): Update update count in navigation 2024-10-28 12:01:58 +01:00
sharebymail Fix(l10n): Update translations from Transifex 2024-10-26 00:20:19 +00:00
systemtags Fix(l10n): Update translations from Transifex 2024-10-23 00:24:03 +00:00
testing refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +02:00
theming Fix(l10n): Update translations from Transifex 2024-10-27 00:22:10 +00:00
twofactor_backupcodes refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +02:00
updatenotification Fix(l10n): Update translations from Transifex 2024-10-26 00:20:19 +00:00
user_ldap Fix(l10n): Update translations from Transifex 2024-10-28 00:20:34 +00:00
user_status Fix(l10n): Update translations from Transifex 2024-10-25 00:20:05 +00:00
weather_status Fix(l10n): Update translations from Transifex 2024-10-26 00:20:19 +00:00
webhook_listeners chore(apps): Apply new rector configuration to autouse classes 2024-10-15 10:40:25 +02:00
workflowengine Fix(l10n): Update translations from Transifex 2024-10-27 00:22:10 +00:00