From 1b09cee0307699a159766399f14a2829e89a4e48 Mon Sep 17 00:00:00 2001 From: kevin_fourie Date: Thu, 30 Aug 2007 19:05:20 +0000 Subject: [PATCH] KTS-2268 "When selecting "Action Restriction" for a workflow, the actions are not restricted" Fixed. Removed broken actions check. This will still need to be investigated more but for now it works. --- lib/workflow/workflowutil.inc.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/workflow/workflowutil.inc.php b/lib/workflow/workflowutil.inc.php index b6a8659..5f27df5 100644 --- a/lib/workflow/workflowutil.inc.php +++ b/lib/workflow/workflowutil.inc.php @@ -385,9 +385,11 @@ class KTWorkflowUtil { if (is_null($oWorkflow)) { return true; } - if (!in_array($sName, KTWorkflowUtil::getControlledActionsForWorkflow($oWorkflow))) { - return true; - } + // FIXME: The workflow_actions table that the method below uses is always empty! + // It seems the new method was never followed though to completion. + //if (!in_array($sName, KTWorkflowUtil::getControlledActionsForWorkflow($oWorkflow))) { + // return true; + //} $oState =& KTWorkflowState::getByDocument($oDocument); if (in_array($sName, KTWorkflowUtil::getDisabledActionsForState($oState))) { return false; -- libgit2 0.21.4