diff --git a/views/bootstrap/class.MyDocuments.php b/views/bootstrap/class.MyDocuments.php index 53a312d06..24b2fd46d 100644 --- a/views/bootstrap/class.MyDocuments.php +++ b/views/bootstrap/class.MyDocuments.php @@ -87,15 +87,14 @@ $(document).ready( function() { $document = $dms->getDocument($res["id"]); $document->verifyLastestContentExpriry(); - $txt = $this->callHook('documentListItem', $document, $previewer); - if(is_string($txt)) - echo $txt; - else { - if($document->getAccessMode($user) >= M_READ && $document->getLatestContent()) { + if($document->getAccessMode($user) >= M_READ && $document->getLatestContent()) { + $txt = $this->callHook('documentListItem', $document, $previewer); + if(is_string($txt)) + echo $txt; + else echo $this->documentListRow($document, $previewer, false, $res['version']); - } else { - $noaccess++; - } + } else { + $noaccess++; } } $this->printListFooter();