mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-16 22:51:32 +00:00
Fixed wrong return object in getDocumentLink()
This commit is contained in:
parent
18c34ce29d
commit
02e7066749
|
@ -1821,7 +1821,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
$link = new SeedDMS_Core_DocumentLink($resArr["id"], $document, $target, $resArr["userID"], $resArr["public"]);
|
||||
$user = $this->_dms->getLoggedInUser();
|
||||
if($link->getAccessMode($user, $document, $target) >= M_READ)
|
||||
return $file;
|
||||
return $link;
|
||||
return null;
|
||||
} /* }}} */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user