Commit 03d3bf533112ba123578271de939d173937316b5
1 parent
a686b576
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. Committed By: Kevin Fourie Reviewed By: Conrad Vermeulen git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7109 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
5 additions
and
3 deletions
lib/workflow/workflowutil.inc.php
| @@ -385,9 +385,11 @@ class KTWorkflowUtil { | @@ -385,9 +385,11 @@ class KTWorkflowUtil { | ||
| 385 | if (is_null($oWorkflow)) { | 385 | if (is_null($oWorkflow)) { |
| 386 | return true; | 386 | return true; |
| 387 | } | 387 | } |
| 388 | - if (!in_array($sName, KTWorkflowUtil::getControlledActionsForWorkflow($oWorkflow))) { | ||
| 389 | - return true; | ||
| 390 | - } | 388 | + // FIXME: The workflow_actions table that the method below uses is always empty! |
| 389 | + // It seems the new method was never followed though to completion. | ||
| 390 | + //if (!in_array($sName, KTWorkflowUtil::getControlledActionsForWorkflow($oWorkflow))) { | ||
| 391 | + // return true; | ||
| 392 | + //} | ||
| 391 | $oState =& KTWorkflowState::getByDocument($oDocument); | 393 | $oState =& KTWorkflowState::getByDocument($oDocument); |
| 392 | if (in_array($sName, KTWorkflowUtil::getDisabledActionsForState($oState))) { | 394 | if (in_array($sName, KTWorkflowUtil::getDisabledActionsForState($oState))) { |
| 393 | return false; | 395 | return false; |