From bfbdc939dcc71fae6c6c5645df74e31e2d520fe1 Mon Sep 17 00:00:00 2001 From: chaideqing Date: Mon, 18 Dec 2023 03:13:01 +0000 Subject: [PATCH] * Fix bug#40755. --- module/execution/model.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index 4a56dde322..fa80357daa 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -4505,13 +4505,15 @@ class executionModel extends model * * @param object $execution * @param string $action + * @param string $module * @access public * @return bool */ - public static function isClickable($execution, $action) + public static function isClickable($execution, $action, $module = 'execution') { + if($module == 'programplan') $module = 'execution'; $action = strtolower($action); - $clickable = commonModel::hasPriv('execution', $action); + $clickable = commonModel::hasPriv($module, $action); if(!$clickable) return false; if($action == 'start') return $execution->status == 'wait';