From: Louis Chemineau Date: Wed, 10 Jan 2024 16:04:26 +0000 (+0100) Subject: Improve view only error message X-Git-Tag: v29.0.0beta1~517^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F42680%2Fhead;p=nextcloud-server.git Improve view only error message Signed-off-by: Louis Chemineau --- 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