Commit 0504cfb5f5f040e89f2b638a7cad936a918d0d25

Authored by michael
1 parent befc0599

#3481 if the document is published don't allow checkout


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2779 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
@@ -423,6 +423,10 @@ function displayCheckInOutButton($oDocument, $bEdit) { @@ -423,6 +423,10 @@ function displayCheckInOutButton($oDocument, $bEdit) {
423 } else { 423 } else {
424 $sAction = "checkOutDocument"; 424 $sAction = "checkOutDocument";
425 $sImageName = "checkout"; 425 $sImageName = "checkout";
  426 + // #3481 if the document is published don't allow checkout
  427 + if (DocumentCollaboration::documentIsPublished($oDocument->getID())) {
  428 + $sDisabledText = "This document has been published and cannot be checked out";
  429 + }
426 } 430 }
427 if (!$bEdit) { 431 if (!$bEdit) {
428 $sDisabledText = "You do not have write access to this document"; 432 $sDisabledText = "You do not have write access to this document";