mayApprove() returns false if status is S_REJECTED

this must be the case because if a document was rejected during review
the approval process may not happen anymore. The disadvantages is, that
a document which was rejected during approval cannot not be released
anymore.
This commit is contained in:
Uwe Steinmann 2015-08-07 14:21:32 +02:00
parent 17a9eb739c
commit cbf40c2b6f

View File

@ -226,7 +226,7 @@ class SeedDMS_AccessOperation {
if(get_class($this->obj) == $this->dms->getClassname('document')) {
$latestContent = $this->obj->getLatestContent();
$status = $latestContent->getStatus();
if ($status["status"]!=S_OBSOLETE && $status["status"]!=S_DRAFT_REV) {
if ($status["status"]!=S_OBSOLETE && $status["status"]!=S_DRAFT_REV && $status["status"]!=S_REJECTED) {
return true;
}
}