aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.common.js
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-09-09 00:21:50 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-10-28 15:52:27 +0100
commitc84c256261cc3e518594286fc334797bc99245cc (patch)
treeddc2dd1001197c129ef134aa867b954a07076823 /webpack.common.js
parent988b6002ed8ed87aa2c4cfa060e20fff91d23190 (diff)
downloadnextcloud-server-c84c256261cc3e518594286fc334797bc99245cc.tar.gz
nextcloud-server-c84c256261cc3e518594286fc334797bc99245cc.zip
fix: Adjust preview for view-only sharesfix/view-only-preview
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>
Diffstat (limited to 'webpack.common.js')
0 files changed, 0 insertions, 0 deletions