summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/svc_Common.html
diff options
context:
space:
mode:
authorivan <ivan>2008-01-13 21:36:09 +0000
committerivan <ivan>2008-01-13 21:36:09 +0000
commit2bee469e81f4963d83b9bf020c817dcb436a6a80 (patch)
treed3509afb4a827279a50241a7f065e0d3481052f8 /httemplate/edit/process/svc_Common.html
parent97e6cec67c0c99ce1b6f0667a09f1e009100189d (diff)
ACLs
Diffstat (limited to 'httemplate/edit/process/svc_Common.html')
-rw-r--r--httemplate/edit/process/svc_Common.html15
1 files changed, 9 insertions, 6 deletions
diff --git a/httemplate/edit/process/svc_Common.html b/httemplate/edit/process/svc_Common.html
index f5c869a12..cf5f01f71 100644
--- a/httemplate/edit/process/svc_Common.html
+++ b/httemplate/edit/process/svc_Common.html
@@ -1,13 +1,16 @@
+<% include( 'elements/svc_Common.html',
+ 'table' => $table,
+ 'redirect' => popurl(3)."view/svc_Common.html?svcdb=$table;svcnum=",
+ 'error_redirect' => popurl(3)."edit/svc_Common.html?svcdb=$table;",
+ )
+%>
<%init>
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
+
$cgi->param('svcdb') =~ /^(svc_\w+)$/ or die "unparsable svcdb";
my $table = $1;
require "FS/$table.pm";
</%init>
-<% include( 'elements/svc_Common.html',
- 'table' => $table,
- 'redirect' => popurl(3)."view/svc_Common.html?svcdb=$table;svcnum=",
- 'error_redirect' => popurl(3)."edit/svc_Common.html?svcdb=$table;",
- )
-%>