projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix agent type condition, RT#12539
[freeside.git]
/
httemplate
/
elements
/
menu.html
diff --git
a/httemplate/elements/menu.html
b/httemplate/elements/menu.html
index
a70abe4
..
f558777
100644
(file)
--- a/
httemplate/elements/menu.html
+++ b/
httemplate/elements/menu.html
@@
-191,7
+191,7
@@
foreach my $svcdb ( FS::part_svc->svc_tables() ) {
];
}
];
}
- if ( $svcdb
eq 'svc_acct' || $svcdb eq 'svc_broadband'
) {
+ if ( $svcdb
=~ /^svc_(acct|broadband|hardware)$/
) {
$report_svc{"Advanced $lcsname reports"} =
[ $fsurl."search/report_$svcdb.html", '' ];
}
$report_svc{"Advanced $lcsname reports"} =
[ $fsurl."search/report_$svcdb.html", '' ];
}
@@
-532,6
+532,9
@@
$config_misc{'Inventory classes and inventory'} = [ $fsurl.'browse/inventory_cla
|| $curuser->access_right('Edit global inventory')
|| $curuser->access_right('Configuration');
|| $curuser->access_right('Edit global inventory')
|| $curuser->access_right('Configuration');
+$config_misc{'Hardware types'} = [ $fsurl.'browse/hardware_class.html', 'Set up hardware type catalog' ]
+ if $curuser->access_right('Configuration');
+
tie my %config_menu, 'Tie::IxHash';
if ( $curuser->access_right('Configuration' ) ) {
%config_menu = (
tie my %config_menu, 'Tie::IxHash';
if ( $curuser->access_right('Configuration' ) ) {
%config_menu = (