mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-10-17 05:22:23 +00:00
admis are allowed to change approver/reviewer after first approval/review
This commit is contained in:
parent
4b1e933c76
commit
9e1dff071a
|
@ -125,8 +125,9 @@ class SeedDMS_AccessOperation {
|
||||||
* reviewers/approvers is only allowed if version modification is turned on
|
* reviewers/approvers is only allowed if version modification is turned on
|
||||||
* in the settings and the document has not been reviewed/approved by any
|
* in the settings and the document has not been reviewed/approved by any
|
||||||
* user/group already.
|
* user/group already.
|
||||||
* The admin may even set reviewers/approvers if is disallowed in the
|
* The admin may even set reviewers/approvers after the review/approval
|
||||||
* settings.
|
* process has been started, but only if _allowChangeRevAppInProcess
|
||||||
|
* explicitly allows it.
|
||||||
*/
|
*/
|
||||||
function maySetReviewersApprovers($document) { /* {{{ */
|
function maySetReviewersApprovers($document) { /* {{{ */
|
||||||
if(get_class($document) == $this->dms->getClassname('document')) {
|
if(get_class($document) == $this->dms->getClassname('document')) {
|
||||||
|
@ -144,7 +145,7 @@ class SeedDMS_AccessOperation {
|
||||||
if($r['status'] == 1 || $r['status'] == -1)
|
if($r['status'] == 1 || $r['status'] == -1)
|
||||||
$hasapproval = true;
|
$hasapproval = true;
|
||||||
}
|
}
|
||||||
if ((($this->settings->_enableVersionModification && ($document->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin()) && (($status["status"]==S_DRAFT_REV && !$hasreview) || ($status["status"]==S_DRAFT_APP && !$hasreview && !$hasapproval) || $status["status"]==S_DRAFT)) {
|
if ((($this->settings->_enableVersionModification && ($document->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin()) && (($status["status"]==S_DRAFT_REV && (!$hasreview || ($this->user->isAdmin() && $this->settings->_allowChangeRevAppInProcess))) || ($status["status"]==S_DRAFT_APP && ((!$hasreview && !$hasapproval) || ($this->user->isAdmin() && $this->settings->_allowChangeRevAppInProcess))) || $status["status"]==S_DRAFT)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user