check if $user, $requestUser is passed to addIndReviewer() addIndApprover()

This commit is contained in:
Uwe Steinmann 2021-09-20 16:33:25 +02:00
parent 69e3ad87f9
commit 7ed1a83453

View File

@ -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();