From ec5d6ce62e383cef4a6fa0094755957b61e390ef Mon Sep 17 00:00:00 2001 From: Brad Shuttleworth Date: Fri, 27 Jan 2006 14:42:50 +0000 Subject: [PATCH] [security] make actions check that they are not disabled (e.g. by workflow) before dispatch. --- lib/actions/documentaction.inc.php | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/lib/actions/documentaction.inc.php b/lib/actions/documentaction.inc.php index 0fc22c4..9b1684c 100644 --- a/lib/actions/documentaction.inc.php +++ b/lib/actions/documentaction.inc.php @@ -129,6 +129,10 @@ class KTDocumentAction extends KTStandardDispatcher { } } } + + // catch non-enabled state. + if ($this->_disable()) { return false; } + $aOptions = array( "final" => false, "documentaction" => "viewDocument", -- libgit2 0.21.4