mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-09-09 11:29:01 +00:00
use function filterDocumentLinks() from class SeedDMS_Core_DMS
This commit is contained in:
parent
02a8c52f33
commit
fd1d5fa2cf
|
@ -478,7 +478,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Blue_Style {
|
||||||
$this->contentHeading(getMLText("linked_documents"));
|
$this->contentHeading(getMLText("linked_documents"));
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
$links = $document->getDocumentLinks();
|
$links = $document->getDocumentLinks();
|
||||||
$links = filterDocumentLinks($user, $links);
|
$links = SeedDMS_Core_DMS::filterDocumentLinks($user, $links);
|
||||||
|
|
||||||
if (count($links) > 0) {
|
if (count($links) > 0) {
|
||||||
|
|
||||||
|
|
|
@ -103,7 +103,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
|
|
||||||
/* Retrieve linked documents */
|
/* Retrieve linked documents */
|
||||||
$links = $document->getDocumentLinks();
|
$links = $document->getDocumentLinks();
|
||||||
$links = filterDocumentLinks($user, $links);
|
$links = SeedDMS_Core_DMS::filterDocumentLinks($user, $links);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<ul class="nav nav-tabs" id="docinfotab">
|
<ul class="nav nav-tabs" id="docinfotab">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user