From 5bdc6fe3cca554dcc62d2f68f214987a6d814be7 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 12 Apr 2016 12:23:26 +0200 Subject: [PATCH] filter result by new access restrictions derived from status --- out/out.Search.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/out/out.Search.php b/out/out.Search.php index 8110dfc26..dd312a21b 100644 --- a/out/out.Search.php +++ b/out/out.Search.php @@ -143,9 +143,11 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"] && $settings->_enableFullSe foreach($hits as $hit) { if($tmp = $dms->getDocument($hit['document_id'])) { if($tmp->getAccessMode($user) >= M_READ) { - $tmp->verifyLastestContentExpriry(); - $entries[] = $tmp; - $dcount++; + if($tmp->getLatestContent()) { + $tmp->verifyLastestContentExpriry(); + $entries[] = $tmp; + $dcount++; + } } } } @@ -383,9 +385,11 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"] && $settings->_enableFullSe if($resArr['docs']) { foreach ($resArr['docs'] as $entry) { if ($entry->getAccessMode($user) >= M_READ) { - $entry->verifyLastestContentExpriry(); - $entries[] = $entry; - $dcount++; + if($entry->getLatestContent()) { + $entry->verifyLastestContentExpriry(); + $entries[] = $entry; + $dcount++; + } } } }