From 25274f92b71be4bd98e491924a633897531b1ac9 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Wed, 10 Jan 2024 17:04:26 +0100 Subject: [PATCH] Improve view only error message Signed-off-by: Louis Chemineau --- apps/dav/lib/DAV/ViewOnlyPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/DAV/ViewOnlyPlugin.php b/apps/dav/lib/DAV/ViewOnlyPlugin.php index 27e4a06f718..77a9acd628e 100644 --- a/apps/dav/lib/DAV/ViewOnlyPlugin.php +++ b/apps/dav/lib/DAV/ViewOnlyPlugin.php @@ -97,7 +97,7 @@ class ViewOnlyPlugin extends ServerPlugin { // Check if read-only and on whether permission can download is both set and disabled. $canDownload = $attributes->getAttribute('permissions', 'download'); if ($canDownload !== null && !$canDownload) { - throw new Forbidden('Access to this resource has been denied because it is in view-only mode.'); + throw new Forbidden('Access to this shared resource has been denied because its download permission is disabled.'); } } catch (NotFound $e) { // File not found -- 2.39.5