summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2011-02-28 00:42:00 +0000
committerivan <ivan>2011-02-28 00:42:00 +0000
commitae97c1ccb5052608d65ca30f073029d38d0d9a4e (patch)
tree8982fcdf1a9214f32750c897bca29c20101f1f6f /httemplate/edit
parent51a651e4f6c97dc18132f937c8e4c3b61a94bfcd (diff)
fix port editing not to redirect to svc_Common view without graphs, RT#10574
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/process/svc_port.html10
-rw-r--r--httemplate/edit/svc_port.cgi2
2 files changed, 11 insertions, 1 deletions
diff --git a/httemplate/edit/process/svc_port.html b/httemplate/edit/process/svc_port.html
new file mode 100644
index 000000000..f873a6417
--- /dev/null
+++ b/httemplate/edit/process/svc_port.html
@@ -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>
diff --git a/httemplate/edit/svc_port.cgi b/httemplate/edit/svc_port.cgi
index e17b38087..118c4ede7 100644
--- a/httemplate/edit/svc_port.cgi
+++ b/httemplate/edit/svc_port.cgi
@@ -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>