From 91b16892db10e5b53ec3d97de8ee6a01ab6814f8 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 16 Oct 2017 09:05:45 +0200 Subject: [PATCH] also check if last content exists --- out/out.ViewDocument.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/out/out.ViewDocument.php b/out/out.ViewDocument.php index ce2c28b53..8156d7900 100644 --- a/out/out.ViewDocument.php +++ b/out/out.ViewDocument.php @@ -49,7 +49,7 @@ $accessop = new SeedDMS_AccessOperation($dms, $document, $user, $settings); $folder = $document->getFolder(); -if ($document->getAccessMode($user) < M_READ) { +if ($document->getAccessMode($user) < M_READ || !$document->getLatestContent()) { $view->exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied")); }