summaryrefslogtreecommitdiff
path: root/httemplate/edit/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/svc_Common.html
parent97e6cec67c0c99ce1b6f0667a09f1e009100189d (diff)
ACLs
Diffstat (limited to 'httemplate/edit/svc_Common.html')
-rw-r--r--httemplate/edit/svc_Common.html15
1 files changed, 9 insertions, 6 deletions
diff --git a/httemplate/edit/svc_Common.html b/httemplate/edit/svc_Common.html
index 6393f9ebc..6666d9720 100644
--- a/httemplate/edit/svc_Common.html
+++ b/httemplate/edit/svc_Common.html
@@ -1,5 +1,14 @@
+<% include('elements/svc_Common.html',
+ 'table' => $table,
+ 'post_url' => popurl(1). "process/svc_Common.html",
+ %opt,
+ )
+%>
<%init>
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
+
# false laziness w/view/svc_Common.html
$cgi->param('svcdb') =~ /^(svc_\w+)$/ or die "unparsable svcdb";
@@ -22,9 +31,3 @@ if ( UNIVERSAL::can("FS::$table", 'table_info') ) {
}
</%init>
-<% include('elements/svc_Common.html',
- 'table' => $table,
- 'post_url' => popurl(1). "process/svc_Common.html",
- %opt,
- )
-%>