mirror of https://github.com/MISP/MISP
fix: [sidemenu:workflow] Link correctly redirects to workflow history
parent
fd2bf8511a
commit
6134a1c93f
|
@ -1680,6 +1680,7 @@ $divider = $this->element('/genericElements/SideMenu/side_menu_divider');
|
|||
'url' => '/workflowBlueprints/index',
|
||||
'text' => __('List Workflow Blueprints')
|
||||
));
|
||||
echo $divider;
|
||||
if ($menuItem === 'view' || $menuItem === 'edit') {
|
||||
echo $this->element('/genericElements/SideMenu/side_menu_link', array(
|
||||
'element_id' => 'view',
|
||||
|
@ -1694,12 +1695,7 @@ $divider = $this->element('/genericElements/SideMenu/side_menu_divider');
|
|||
));
|
||||
}
|
||||
echo $this->element('/genericElements/SideMenu/side_menu_link', array(
|
||||
'element_id' => 'editor',
|
||||
'url' => '/workflows/editor/' . h($id),
|
||||
'text' => __('Edit Workflow in editor')
|
||||
));
|
||||
echo $this->element('/genericElements/SideMenu/side_menu_link', array(
|
||||
'url' => '/admin/audit_logs/index/model:Workflows/model_id:' . h($id),
|
||||
'url' => '/admin/audit_logs/index/model:Workflow/model_id:' . h($id),
|
||||
'text' => __('View worflow history'),
|
||||
'requirement' => Configure::read('MISP.log_new_audit') && $canAccess('auditLogs', 'admin_index'),
|
||||
));
|
||||
|
|
Loading…
Reference in New Issue