mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-16 06:31:21 +00:00
set if updateUser passed to setStatus() is a user
This commit is contained in:
parent
905b2aa621
commit
9ad56c418d
|
@ -3291,7 +3291,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
||||||
if (!is_numeric($status)) return false;
|
if (!is_numeric($status)) return false;
|
||||||
|
|
||||||
/* return an error if $updateuser is not set */
|
/* return an error if $updateuser is not set */
|
||||||
if(!$updateUser)
|
if(!$updateUser || !$updateUser->isType('user'))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// If the supplied value lies outside of the accepted range, return an
|
// If the supplied value lies outside of the accepted range, return an
|
||||||
|
|
Loading…
Reference in New Issue
Block a user