summaryrefslogtreecommitdiff
path: root/httemplate/misc/process/nms-add_iface.html
diff options
context:
space:
mode:
authorlevinse <levinse>2011-05-15 01:43:40 +0000
committerlevinse <levinse>2011-05-15 01:43:40 +0000
commitb412c2545d8862278343adc1ef17cc297e11ad6d (patch)
treea74b41e8844a4ef3ff0e26d9c7204048c70b7e8b /httemplate/misc/process/nms-add_iface.html
parentbe40a9fa3750374b32f2aa31e8807433c05d7817 (diff)
torrus: add new access rights, add SNMP community option, RT10574
Diffstat (limited to 'httemplate/misc/process/nms-add_iface.html')
-rw-r--r--httemplate/misc/process/nms-add_iface.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/misc/process/nms-add_iface.html b/httemplate/misc/process/nms-add_iface.html
index 0d37ea233..5f51e5ce1 100644
--- a/httemplate/misc/process/nms-add_iface.html
+++ b/httemplate/misc/process/nms-add_iface.html
@@ -5,7 +5,8 @@
</BODY></HTML>
<%init>
-# XXX: access rights
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Configure network monitoring');
my $host = $cgi->param('host');
die 'invalid host' unless $host =~ /^[0-9.a-zA-Z\-]+$/;