* Fix bug#40755.

This commit is contained in:
chaideqing
2023-12-18 03:22:50 +00:00
parent a4e32562bb
commit bfbdc939dc
+4 -2
View File
@@ -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';