Removed download hook when share not found

Signed-off-by: Baran Sekin <baransekin@gmail.com>
This commit is contained in:
Baran Sekin 2020-08-12 13:56:31 +03:00
parent fc858fe12a
commit 2d0bb6dee1
1 changed files with 0 additions and 1 deletions

View File

@ -622,7 +622,6 @@ class ShareController extends AuthPublicShareController {
$node = $node->get($path);
} catch (NotFoundException $e) {
$this->emitAccessShareHook($share, 404, 'Share not found');
$this->emitDownloadShareHook($share, 404, 'Share not found');
return new NotFoundResponse();
}
}