* Edit view link.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user