]> source.dussan.org Git - nextcloud-server.git/commitdiff
Improve view only error message 42680/head
authorLouis Chemineau <louis@chmn.me>
Wed, 10 Jan 2024 16:04:26 +0000 (17:04 +0100)
committerLouis Chemineau <louis@chmn.me>
Wed, 10 Jan 2024 16:04:26 +0000 (17:04 +0100)
Signed-off-by: Louis Chemineau <louis@chmn.me>
apps/dav/lib/DAV/ViewOnlyPlugin.php

index 27e4a06f7186baf0a81ae5447dee79d676b8141e..77a9acd628e02b593d8f2cc28d9f94d72b602522 100644 (file)
@@ -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