nextcloud/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
..
ajax chore(legacy): Introduce public version ct plass and drop version methods from OC_Util 2024-09-20 14:53:34 +02:00
BackgroundJobs fix(BackgroundJobs): Adjust intervals and time sensitivities 2024-10-08 11:26:53 +02:00
Command chore(deps): Bump nextcloud/coding-standard in /vendor-bin/cs-fixer 2024-10-19 07:57:35 +02:00
Controller fix: Adjust preview for view-only shares 2024-10-28 15:52:27 +01:00
css chore(assets): recompile assets 2024-10-14 18:54:32 +02:00
Data chore: Add SPDX header 2024-05-27 14:53:40 +02:00
Db Merge pull request #47329 from nextcloud/feat/add-datetime-qbmapper-support 2024-10-18 19:05:08 +02:00
doc chore: Add SPDX header 2024-05-27 14:53:40 +02:00
Events chore: Unify user related events to always provide a getUid method 2024-10-15 18:33:11 +02:00
Exception chore: Add SPDX header 2024-05-27 14:53:40 +02:00
fonts Include additional scripts in Noto fonts 2021-03-01 19:15:01 +01:00
img fix(federatedfilessharing): Use social media icons from core rather than inline SVGs 2024-10-08 14:31:21 +02:00
js fix(code-style): Adjust JS code to our code style 2024-10-16 22:11:59 +02:00
l10n Fix(l10n): Update translations from Transifex 2024-10-27 00:22:10 +00:00
Listener chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
Middleware chore: Add SPDX header 2024-05-27 14:53:40 +02:00
Migrations fix(migration): Check if column exits before adding it 2024-10-01 08:12:11 +02:00
Notification feat(notifications): Migrate server INotifiers to new exceptions 2024-06-25 11:56:24 +02:00
Service chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
skeleton
src fix(unified-search): Close on second ctrl+f 2024-10-23 13:24:07 +02:00
templates feat(rtl): Set layout direction based on language 2024-09-23 16:59:20 +02:00
vendor chore: Remove old travis related stuff 2024-09-19 20:16:29 +02:00
.l10nignore chore: Add SPDX header 2024-05-27 14:53:40 +02:00
Application.php perf(systemtags): Add index for systemtags_object_mappings.objectid 2024-07-30 13:13:48 +02:00
openapi-ex_app.json chore(deps): Update openapi-extractor to v1.0.0 2024-08-21 11:07:50 +02:00
openapi-ex_app.json.license feat(OpenAPI): Add ex_app scope 2024-07-02 09:12:48 +02:00
openapi-full.json chore(deps): Update openapi-extractor to v1.0.0 2024-08-21 11:07:50 +02:00
openapi-full.json.license feat(TaskProcessingApi): Add endpoint for getting the next task 2024-07-01 17:11:12 +02:00
openapi.json chore(deps): Update openapi-extractor to v1.0.0 2024-08-21 11:07:50 +02:00
openapi.json.license chore: Add SPDX header 2024-06-06 22:53:41 +02:00
register_command.php feat(preview): add command to cleanup preview folder 2024-10-03 13:41:32 +02:00
ResponseDefinitions.php fix(taskprocessing): fix cs issues and generate autoloaders 2024-07-25 10:10:32 +02:00
routes.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +02:00
shipped.json feat: add app_api to shipped and default enabled apps 2024-09-25 14:52:41 +03:00
shipped.json.license chore: Add SPDX header 2024-06-06 22:53:41 +02:00
strings.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +02:00