diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-12-09 14:47:16 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-12-09 14:47:16 -0800 |
commit | 61a84d1b2dc076e80dec0b96bc9867ad4215e374 (patch) | |
tree | abd4fb434ad8dd83c94ee6ef289433e9e1386186 /httemplate/elements | |
parent | 3d1788e9ca966d7cdbc5f2784708cc311b7dac2e (diff) |
alarm systems, types, central stations, RT#25994
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/menu.html | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index 57233cf24..84cd4d537 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -518,6 +518,12 @@ tie my %config_cable, 'Tie::IxHash', 'Cable modem models' => [ $fsurl.'browse/cable_model.html', '' ], ; +tie my %config_alarm, 'Tie::IxHash', + 'Alarm system vendors' => [ $fsurl.'browse/alarm_system.html', '' ], + 'Alarm system types' => [ $fsurl.'browse/alarm_type.html', '' ], + 'Alarm central stations' => [ $fsurl.'browse/alarm_station.html', '' ], +; + tie my %config_export_svc, 'Tie::IxHash', (); if ( $curuser->access_right('Configuration') ) { $config_export_svc{'Service definitions'} = [ $fsurl.'browse/part_svc.cgi', 'Services are items you offer to your customers' ]; @@ -534,6 +540,8 @@ $config_export_svc{'RADIUS'} = [ \%config_radius, '' ] if $curuser->access_right('Configuration'); $config_export_svc{'Cable'} = [ \%config_cable, '' ] if $curuser->access_right('Configuration'); +$config_export_svc{'Alarm'} = [ \%config_alarm, '' ] + if $curuser->access_right(['Alarm configuration', 'Alarm global configuration']); $config_export_svc{'Hardware types'} = [ $fsurl.'browse/hardware_class.html', 'Set up hardware type catalog' ] if $curuser->access_right('Configuration'); @@ -799,16 +807,19 @@ $menu{'Reports'} = [ \%report_menu, 'Lists, reporting and graphing' ] $menu{'Tools'} = [ \%tools_menu, 'Tools' ] if keys %tools_menu; $menu{'Configuration'} = [ \%config_menu, 'Configuration and setup' ] - if $curuser->access_right('Configuration') - || $curuser->access_right('Edit package definitions') - || $curuser->access_right('Edit global package definitions') - || $curuser->access_right('Edit billing events') - || $curuser->access_right('Edit global billing events') - || $curuser->access_right('Dialup configuration') - || $curuser->access_right('Wireless broadband configuration') - || $curuser->access_right('Phone configuration') - || $curuser->access_right('Edit advertising sources') - || $curuser->access_right('Edit global advertising sources'); + if $curuser->access_right([ 'Configuration', + 'Edit package definitions', + 'Edit global package definitions', + 'Edit billing events', + 'Edit global billing events', + 'Dialup configuration', + 'Wireless broadband configuration', + 'Phone configuration', + 'Alarm configuration', + 'Alarm global configuration', + 'Edit advertising sources', + 'Edit global advertising sources', + ]); $menu{'Help'} = [ \%help_menu, '' ]; |