mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
also check if last content exists
This commit is contained in:
parent
bd4b85d15e
commit
91b16892db
|
@ -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"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user