mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Improve view only error message
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
50aeae6a85
commit
25274f92b7
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue