mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
check if document exists
This commit is contained in:
parent
feec95eff7
commit
20bc412a17
|
@ -91,13 +91,14 @@ $(document).ready( function() {
|
|||
$noaccess = 0;
|
||||
$docs = [];
|
||||
foreach ($resArr as $res) {
|
||||
$document = $dms->getDocument($res["id"]);
|
||||
$document->verifyLastestContentExpriry();
|
||||
if($document = $dms->getDocument($res["id"])) {
|
||||
$document->verifyLastestContentExpriry();
|
||||
|
||||
if($document->getAccessMode($user) >= M_READ && $document->getLatestContent()) {
|
||||
$docs[] = $document;
|
||||
} else {
|
||||
$noaccess++;
|
||||
if($document->getAccessMode($user) >= M_READ && $document->getLatestContent()) {
|
||||
$docs[] = $document;
|
||||
} else {
|
||||
$noaccess++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($this->hasHook('filterList'))
|
||||
|
|
Loading…
Reference in New Issue
Block a user