Commit 67e16530292986acf64ef08e30e3d60d3d6585d0

Authored by bshuttle
1 parent e55a8756

[security] make actions check that they are not disabled (e.g. by workflow)

before dispatch.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4704 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/actions/documentaction.inc.php
... ... @@ -129,6 +129,10 @@ class KTDocumentAction extends KTStandardDispatcher {
129 129 }
130 130 }
131 131 }
  132 +
  133 + // catch non-enabled state.
  134 + if ($this->_disable()) { return false; }
  135 +
132 136 $aOptions = array(
133 137 "final" => false,
134 138 "documentaction" => "viewDocument",
... ...