From 49e3075612b2d1d3a85110177c48d3990537a2b5 Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Thu, 29 Nov 2018 15:30:50 +0100
Subject: [PATCH] FEAT #8919 Remove check on templates docserver

---
 .../signatureBook/controllers/SignatureBookController.php    | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/app/signatureBook/controllers/SignatureBookController.php b/src/app/signatureBook/controllers/SignatureBookController.php
index 09b2a84fbc3..3b8ecee1d81 100644
--- a/src/app/signatureBook/controllers/SignatureBookController.php
+++ b/src/app/signatureBook/controllers/SignatureBookController.php
@@ -19,7 +19,6 @@ use Attachment\models\AttachmentModel;
 use Basket\models\BasketModel;
 use Contact\models\ContactModel;
 use Convert\controllers\ConvertPdfController;
-use Docserver\models\DocserverModel;
 use Entity\models\ListInstanceModel;
 use Group\models\ServiceModel;
 use Link\models\LinkModel;
@@ -44,10 +43,6 @@ class SignatureBookController
         if (!ResController::hasRightByResId(['resId' => $resId, 'userId' => $GLOBALS['userId']])) {
             return $response->withStatus(403)->withJson(['errors' => 'Document out of perimeter']);
         }
-        $docserver = DocserverModel::getCurrentDocserver(['typeId' => 'TEMPLATES', 'collId' => 'templates', 'select' => ['path_template']]);
-        if (empty($docserver['path_template']) || !file_exists($docserver['path_template'])) {
-            return $response->withStatus(500)->withJson(['errors' => _UNREACHABLE_DOCSERVER]);
-        }
 
         $documents = SignatureBookController::getIncomingMailAndAttachmentsForSignatureBook(['resId' => $resId]);
         if (!empty($documents['error'])) {
-- 
GitLab