Commit 24ddb1d3de038eca2412dc9e04f447fe3ba29a35
1 parent
8704358e
#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
Showing
1 changed file
with
4 additions
and
0 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
| ... | ... | @@ -423,6 +423,10 @@ function displayCheckInOutButton($oDocument, $bEdit) { |
| 423 | 423 | } else { |
| 424 | 424 | $sAction = "checkOutDocument"; |
| 425 | 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 | 431 | if (!$bEdit) { |
| 428 | 432 | $sDisabledText = "You do not have write access to this document"; | ... | ... |