mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
check if $user, $requestUser is passed to addIndReviewer() addIndApprover()
This commit is contained in:
parent
69e3ad87f9
commit
7ed1a83453
|
@ -3765,6 +3765,9 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
} /* }}} */
|
||||
|
||||
function addIndReviewer($user, $requestUser) { /* {{{ */
|
||||
if(!$user || !$requestUser)
|
||||
return -1;
|
||||
|
||||
$db = $this->_document->getDMS()->getDB();
|
||||
|
||||
$userID = $user->getID();
|
||||
|
@ -4032,6 +4035,9 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
} /* }}} */
|
||||
|
||||
function addIndApprover($user, $requestUser) { /* {{{ */
|
||||
if(!$user || !$requestUser)
|
||||
return -1;
|
||||
|
||||
$db = $this->_document->getDMS()->getDB();
|
||||
|
||||
$userID = $user->getID();
|
||||
|
|
Loading…
Reference in New Issue
Block a user