do not allow to set workflow of previous versions

This commit is contained in:
Uwe Steinmann 2023-11-12 19:05:54 +01:00
parent 6f8f56ad4b
commit 2e8ab0cb52

View File

@ -819,6 +819,7 @@ $(document).ready( function() {
if($islatest && $accessobject->mayOverwriteStatus()) {
$items[] = array('link'=>$this->html_url('OverrideContentStatus', array('documentid'=>$latestContent->getDocument()->getId(),'version'=>$latestContent->getVersion())), 'icon'=>'align-justify', 'label'=>'change_status');
}
if(0) {
if($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') {
// Allow changing reviewers/approvals only if not reviewed
if($accessobject->maySetReviewersApprovers()) {
@ -832,6 +833,7 @@ $(document).ready( function() {
}
}
}
}
if($accessobject->check_view_access('EditComment'))
if($accessobject->mayEditComment()) {
$items[] = array('link'=>$this->html_url('EditComment', array('documentid'=>$latestContent->getDocument()->getId(),'version'=>$latestContent->getVersion())), 'icon'=>'comment', 'label'=>'edit_comment');