From bf4fe82cd5dc99b81780d67efcc230e61a8456c2 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 2 May 2024 14:24:09 +0200 Subject: [PATCH] status of previous version can be overwritten --- views/bootstrap/class.ViewDocument.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 3874ce92d..4c4cefb31 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -820,7 +820,7 @@ $(document).ready( function() { if($accessobject->mayRemoveVersion()) { $items[] = array('link'=>$this->html_url('RemoveVersion', array('documentid'=>$latestContent->getDocument()->getId(),'version'=>$latestContent->getVersion())), 'icon'=>'remove', 'label'=>'rm_version'); } - if($islatest && $accessobject->mayOverwriteStatus()) { + if($accessobject->mayOverwriteStatus()) { $items[] = array('link'=>$this->html_url('OverrideContentStatus', array('documentid'=>$latestContent->getDocument()->getId(),'version'=>$latestContent->getVersion())), 'icon'=>'align-justify', 'label'=>'change_status'); } if($islatest) {