From ae97c1ccb5052608d65ca30f073029d38d0d9a4e Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 28 Feb 2011 00:42:00 +0000 Subject: [PATCH] fix port editing not to redirect to svc_Common view without graphs, RT#10574 --- httemplate/edit/process/svc_port.html | 10 ++++++++++ httemplate/edit/svc_port.cgi | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 httemplate/edit/process/svc_port.html 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? + + 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> -- 2.11.0