From 0504cfb5f5f040e89f2b638a7cad936a918d0d25 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 12 Nov 2003 13:51:31 +0000 Subject: [PATCH] #3481 if the document is published don't allow checkout --- presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc index 04d9d7b..9e9445c 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc @@ -423,6 +423,10 @@ function displayCheckInOutButton($oDocument, $bEdit) { } else { $sAction = "checkOutDocument"; $sImageName = "checkout"; + // #3481 if the document is published don't allow checkout + if (DocumentCollaboration::documentIsPublished($oDocument->getID())) { + $sDisabledText = "This document has been published and cannot be checked out"; + } } if (!$bEdit) { $sDisabledText = "You do not have write access to this document"; -- libgit2 0.21.4