diff options
author | levinse <levinse> | 2011-05-15 15:44:09 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-05-15 15:44:09 +0000 |
commit | e39f81dae87d882c0ea4f6f1918fa9cae6d2fc61 (patch) | |
tree | 21bc512c1c89e255a5f1c68ef8fb2916fa603883 | |
parent | b412c2545d8862278343adc1ef17cc297e11ad6d (diff) |
torrus access rights, RT10574
-rw-r--r-- | httemplate/edit/process/torrus_srvderive.html | 2 | ||||
-rw-r--r-- | httemplate/edit/torrus_srvderive.html | 2 | ||||
-rw-r--r-- | httemplate/elements/menu.html | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/edit/process/torrus_srvderive.html b/httemplate/edit/process/torrus_srvderive.html index c3260bc8a..d7aacffca 100644 --- a/httemplate/edit/process/torrus_srvderive.html +++ b/httemplate/edit/process/torrus_srvderive.html @@ -13,7 +13,7 @@ <%init> die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + unless $FS::CurrentUser::CurrentUser->access_right('Configure network monitoring'); my $nms = new FS::NetworkMonitoringSystem; my @serviceids = $nms->torrus_serviceids; diff --git a/httemplate/edit/torrus_srvderive.html b/httemplate/edit/torrus_srvderive.html index b6cdb1a81..63f465420 100644 --- a/httemplate/edit/torrus_srvderive.html +++ b/httemplate/edit/torrus_srvderive.html @@ -14,7 +14,7 @@ <%init> die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + unless $FS::CurrentUser::CurrentUser->access_right('Configure network monitoring'); my $html_bottom_sub = sub { my $torrus_srvderive = shift; diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index 5e2e54835..b5d48a7cb 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -583,7 +583,7 @@ $config_menu{'Broadband'} = [ \%config_broadband, '' ] $config_menu{'Phone'} = [ \%config_phone, '' ] if $curuser->access_right('Configuration'); $config_menu{'Network Monitoring'} = [ \%config_nms, '' ] - if $curuser->access_right('Configuration') + if $curuser->access_right('Configure network monitoring') && $conf->config('network_monitoring_system') eq 'Torrus_Internal'; $config_menu{'Miscellaneous'} = [ \%config_misc, '' ] if $curuser->access_right('Configuration' ) |