fix: [sidemenu:workflow] Link correctly redirects to workflow history

pull/8530/head
Sami Mokaddem 2022-07-20 16:50:13 +02:00
parent fd2bf8511a
commit 6134a1c93f
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 6 deletions

View File

@ -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'),
));