mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-08 20:46:05 +00:00
add new revisor when transfering processes even in status 'sleeping'
This commit is contained in:
parent
8eec73b4be
commit
a34cd8b4ee
|
@ -1022,8 +1022,8 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
/* Only revisions not done already can be transferred to a new user */
|
||||
if($newuser && $ri['status'] == 0) {
|
||||
/* Only revisions not already done or sleeping can be transferred to a new user */
|
||||
if($newuser && in_array($ri['status'], array(S_LOG_WAITING, S_LOG_SLEEPING))) {
|
||||
if($doc = $this->_dms->getDocument($ri['documentID'])) {
|
||||
if($version = $doc->getContentByVersion($ri['version'])) {
|
||||
$ret = $version->addIndRevisor($newuser, $user);
|
||||
|
|
Loading…
Reference in New Issue
Block a user