* Finish task #47335.

This commit is contained in:
tianshujie
2022-01-12 15:44:44 +08:00
parent 7870309514
commit 4bca0680ab
5 changed files with 67 additions and 14 deletions
+3 -1
View File
@@ -3038,7 +3038,9 @@ class executionModel extends model
*/
public static function isClickable($execution, $action)
{
$action = strtolower($action);
$action = strtolower($action);
$clickable = commonModel::hasPriv('execution', $action);
if(!$clickable) return false;
if($action == 'start') return $execution->status == 'wait';
if($action == 'close') return $execution->status != 'closed';