set if updateUser passed to setStatus() is a user

This commit is contained in:
Uwe Steinmann 2021-10-02 07:31:44 +02:00
parent 905b2aa621
commit 9ad56c418d

View File

@ -3291,7 +3291,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
if (!is_numeric($status)) return false;
/* return an error if $updateuser is not set */
if(!$updateUser)
if(!$updateUser || !$updateUser->isType('user'))
return false;
// If the supplied value lies outside of the accepted range, return an