Commit 0f335ffedad268319c4d30b4d4627d147d54fb01
1 parent
79d1aae0
KTS-1617
"Disabled workflow still works" Fixed. Committed By: Kevin Reviewed By: Jalaloedien git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@6677 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
plugins/ktcore/KTDocumentActions.php
| ... | ... | @@ -1341,7 +1341,7 @@ class KTDocumentWorkflowAction extends KTDocumentAction { |
| 1341 | 1341 | $oUser =& User::get($_SESSION['userID']); |
| 1342 | 1342 | $aTransitions = KTWorkflowUtil::getTransitionsForDocumentUser($oDocument, $oUser); |
| 1343 | 1343 | |
| 1344 | - $aWorkflows = KTWorkflow::getList('start_state_id IS NOT NULL'); | |
| 1344 | + $aWorkflows = KTWorkflow::getList('start_state_id IS NOT NULL AND enabled = 1 '); | |
| 1345 | 1345 | |
| 1346 | 1346 | $bHasPerm = false; |
| 1347 | 1347 | if (KTPermissionUtil::userHasPermissionOnItem($oUser, 'ktcore.permissions.workflow', $oDocument)) { | ... | ... |