fix port editing not to redirect to svc_Common view without graphs, RT#10574
authorivan <ivan>
Mon, 28 Feb 2011 00:42:00 +0000 (00:42 +0000)
committerivan <ivan>
Mon, 28 Feb 2011 00:42:00 +0000 (00:42 +0000)
httemplate/edit/process/svc_port.html [new file with mode: 0644]
httemplate/edit/svc_port.cgi

diff --git a/httemplate/edit/process/svc_port.html b/httemplate/edit/process/svc_port.html
new file mode 100644 (file)
index 0000000..f873a64
--- /dev/null
@@ -0,0 +1,10 @@
+<% include( 'elements/svc_Common.html',
+               'table'    => 'svc_port',
+           )
+%>
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
+
+</%init>
index e17b380..118c4ed 100644 (file)
@@ -3,7 +3,7 @@
              'table'  => 'svc_port',
              'fields' => \@fields,
              'labels' => \%labels,
-             'post_url' => popurl(1). "process/svc_Common.html", #?
+             #'post_url' => popurl(1). "process/svc_Common.html", #?
           )
 %>
 <%init>