Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/DirectViewController.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Controller/DirectViewController.php b/lib/Controller/DirectViewController.php
index 5a43777b..b6616770 100644
--- a/lib/Controller/DirectViewController.php
+++ b/lib/Controller/DirectViewController.php
@@ -100,7 +100,9 @@ class DirectViewController extends Controller {
$params = [
'errors' => [['error' => $e->getMessage()]]
];
- return new TemplateResponse('core', 'error', $params, 'guest');
+ $response = new TemplateResponse('core', 'error', $params, 'guest');
+ $response->setStatus(Http::STATUS_FORBIDDEN);
+ return $response;
}
// Delete the token. They are for 1 time use only