diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php index df61aa5..a885804 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php @@ -109,7 +109,7 @@ if (checkSession()) { $main->setErrorMessage("The collaboration steps for the folder must be set up before collaboration can begin"); $main->render(); } - } else if (isset($fCollaborationStepComplete)) { + } else if ((isset($fCollaborationStepComplete)) && (Document::userIsPerformingCurrentCollaborationStep($fDocumentID))) { //the user has signled that they have completed their step in the collaboration process if (Document::isLastStepInCollaborationProcess($fDocumentID)) { require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); @@ -142,8 +142,8 @@ if (checkSession()) { $main->setCentralPayload($oPatternCustom); $main->setErrorMessage("The next steps in the collaboration process have been started"); $main->render(); - } - } else if (Permission::userHasDocumentWritePermission($fDocumentID) || Permission::userHasDocumentReadPermission($fDocumentID)) { + } + } else if (Permission::userHasDocumentWritePermission($fDocumentID) || Permission::userHasDocumentReadPermission($fDocumentID)) { require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); require_once("$default->fileSystemRoot/lib/subscriptions/SubscriptionEngine.inc"); diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc index 63a2d83..b27c2b8 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc @@ -160,14 +160,15 @@ function getEditPage($oDocument) { $sToRender .= "\t\n"; if ((!Document::documentCollaborationStarted($oDocument->getID())) && ($_SESSION["userID"] == $oDocument->getCreatorID())) { //if not all collaboration steps have been set, then you cannot start the collaboration process - //only the creator of the document can start the collaboration process - $sToRender .= "\t\tgraphicsUrl/widgets/begin.gif\" border=\"0\"/>\n"; + //only the creator of the document can start the collaboration process + $sToRender .= "\t\tgraphicsUrl/widgets/begin.gif\" border=\"0\"/>". + "graphicsUrl/widgets/begin.gif\" border=\"0\"/>\n"; } else if (Document::userIsPerformingCurrentCollaborationStep($oDocument->getID())) { //if the current user is responsible for an active step in the collaboration process $sToRender .= "\t\t\n"; $sToRender .= "\t\t\n"; $sToRender .= "\t\t\n"; - $sToRender .= "\t\t\n"; + $sToRender .= "\t\t\n"; $sToRender .= "\t\t
You currently have an active role
in the collaboration process
graphicsUrl/widgets/update.gif\" border=\"0\"/>graphicsUrl/widgets/update.gif\" border=\"0\"/>rootUrl/control.php?action=collaborationStepReject&fDocumentID=$iDocumentID\">graphicsUrl/widgets/reject.gif\" border=\"0\"/>
\n"; } $sToRender .= "\t";