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
| You currently have an active role in the collaboration process | \n";
$sToRender .= "\t\tgetID() . "&fCollaborationStepComplete=1> | \n";
- $sToRender .= "\t\tgetID() . "&fCollaborationStepReject=1> | \n";
+ $sToRender .= "\t\trootUrl/control.php?action=collaborationStepReject&fDocumentID=$iDocumentID\"> | \n";
$sToRender .= "\t\t