X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fmenu.html;fp=httemplate%2Felements%2Fmenu.html;h=cadbd864dd19549379960c2a73bf639d4f8ceb9f;hp=58a7d5783b85e1061077631d5ae69a8323505adf;hb=33b9c827617bb2cd71772dfd32a1ac3902532c36;hpb=803963e6151554f6087e2e1bc58f43ec8097e5a1 diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index 58a7d5783..cadbd864d 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -428,8 +428,6 @@ $report_logs{'Billing events'} = [ $fsurl.'search/report_cust_event.html', 'Sea if $curuser->access_right('Billing event reports'); $report_logs{'Credit limit incidents'} = [ $fsurl.'search/report_cust_main_credit_limit.html', '' ] if $curuser->access_right('List rating data'); -$report_logs{'Employee activity'} = [ $fsurl.'search/report_employee_audit.html', '' ] - if $curuser->access_right('Employees: Audit Report'); $report_logs{'System log'} = [ $fsurl.'search/log.html', 'View system events and debugging information.' ], if $curuser->access_right('View system logs') || $curuser->access_right('Configuration'); @@ -437,6 +435,12 @@ $report_logs{'Outgoing messages'} = [ $fsurl.'search/cust_msg.html', 'View outgo if $curuser->access_right('View email logs') || $curuser->access_right('Configuration'); +tie my %report_employee, 'Tie::IxHash', + 'Employee activity' => [ $fsurl.'search/report_employee_audit.html', '' ], + 'Employee sessions' => [ $fsurl.'search/report_access_user_session_log.html', '' ], + 'Access log statistics' => [ $fsurl.'search/report_access_user_log.html?group_by=path', '' ], +; + tie my %report_menu, 'Tie::IxHash'; $report_menu{'Saved searches'} = [ \%report_saved_searches, 'My saved searches' ] if keys(%report_saved_searches); @@ -475,6 +479,8 @@ $report_menu{'Financial (Receivables)'} = [ \%report_financial, 'Financial repor $report_menu{'Financial (Payables)'} = [ \%report_payable, 'Financial reports (Payables)' ] if $curuser->access_right('Financial reports'); +$report_menu{'Employees'} = [ \%report_employee, 'Employee reports' ] + if $curuser->access_right('Employee Reports'); $report_menu{'Logs'} = [ \%report_logs, 'System and email logs' ] if (keys %report_logs); # empty if the user has no rights to it $report_menu{'SQL Query'} = [ $fsurl.'search/report_sql.html', 'SQL Query'] @@ -554,8 +560,6 @@ $tools_system{'Status'} = [ $fsurl.'view/Status.html', 'System status' ] if $curuser->access_right('Configuration'); # 'View system status'); $tools_system{'Job Queue'} = [ $fsurl.'search/queue.html', 'View pending job queue' ] if $curuser->access_right('Job queue'); -$tools_system{'Access log statistics'} = [ $fsurl.'search/report_access_user_log.html?group_by=path', '' ] - if $curuser->access_right('Configuration'); # 'View profiling data'); tie my %tools_menu, 'Tie::IxHash', (); $tools_menu{'Customers'} = [ \%tools_customers, 'Customer tools' ]