diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index cd24e9937..c032469d6 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -860,7 +860,6 @@ $(document).ready( function() { if($islatest && $accessobject->mayOverrideStatus($latestContent->getDocument())) { $items[] = array('link'=>$this->html_url('OverrideContentStatus', array('documentid'=>$latestContent->getDocument()->getId(),'version'=>$latestContent->getVersion())), 'icon'=>'align-justify', 'label'=>'change_status'); } - if(0) { if($islatest && $enablereceiptworkflow && $accessobject->check_controller_access('SetRecipients')) if($accessobject->maySetRecipients($latestContent->getDocument())) { $items[] = array('link'=>"../out/out.SetRecipients.php?documentid=".$latestContent->getDocument()->getId()."&version=".$latestContent->getVersion(), 'icon'=>'check', 'label'=>'change_recipients'); @@ -869,6 +868,7 @@ $(document).ready( function() { if($accessobject->maySetRevisors($latestContent->getDocument())) { $items[] = array('link'=>$this->params['settings']->_httpRoot."out/out.SetRevisors.php?documentid=".$latestContent->getDocument()->getId()."&version=".$latestContent->getVersion(), 'icon'=>'refresh', 'label'=>'change_revisors'); } + if($islatest) { if($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') { // Allow changing reviewers/approvals only if not reviewed if($accessobject->maySetReviewersApprovers($latestContent->getDocument())) {