* Edit view link.

This commit is contained in:
tianshujie
2022-01-24 15:16:29 +08:00
parent 78427e12c6
commit dfa075beb7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -389,7 +389,7 @@ function renderExecutionItem(item, $item)
var $title = $titleBox.children('.title');
if(!$title.length)
{
var viewMethod = item.execType == 'kanban' ? 'kanban' : 'task';
var viewMethod = item.execType == 'kanban' ? 'kanban' : 'view';
if(privs.includes('viewExecution') && item.deleted == '0') $title = $('<a class="title"><i class="icon icon-run"></i>' + item.name + '</a>').appendTo($titleBox).attr('href', createLink('execution', viewMethod, 'executionID=' + item.fromID));
if(!privs.includes('viewExecution') || item.deleted == '1') $title = $('<a class="title"><i class="icon icon-run"></i>' + item.name + '</a>').appendTo($titleBox);
}
+1 -1
View File
@@ -978,7 +978,7 @@ class kanbanModel extends model
if($card->fromType == 'execution')
{
if($card->execType == 'kanban' and common::hasPriv('execution', 'kanban')) $card->actions[] = $action;
if($card->execType != 'kanban' and common::hasPriv('execution', 'task')) $card->actions[] = $action;
if($card->execType != 'kanban' and common::hasPriv('execution', 'view')) $card->actions[] = $action;
}
continue;
}