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