mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
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:
parent
17a9eb739c
commit
cbf40c2b6f
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user