diff options
author | ivan <ivan> | 2007-01-30 20:59:14 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-01-30 20:59:14 +0000 |
commit | 15777da47bab33e8f0021e6dd9aa6b434fa9be30 (patch) | |
tree | 83359450ba8dcac02c86bdbd0c85db45a699fc06 /httemplate/browse/svc_acct_pop.cgi | |
parent | 655b4043942c7d361224d283accb4c2a02ef7359 (diff) |
its all about control
Diffstat (limited to 'httemplate/browse/svc_acct_pop.cgi')
-rwxr-xr-x | httemplate/browse/svc_acct_pop.cgi | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/httemplate/browse/svc_acct_pop.cgi b/httemplate/browse/svc_acct_pop.cgi index 949bfa790..306d02afb 100755 --- a/httemplate/browse/svc_acct_pop.cgi +++ b/httemplate/browse/svc_acct_pop.cgi @@ -1,10 +1,3 @@ -<!-- mason kludge --> -% -% my $accounts_sth = dbh->prepare("SELECT COUNT(*) FROM svc_acct -% WHERE popnum = ? ") -% or die dbh->errstr; -% - <% include("/elements/header.html",'Access Number Listing', menubar( 'Main Menu' => $p )) %> Points of Presence<BR><BR> <A HREF="<% $p %>edit/svc_acct_pop.cgi"><I>Add new Access Number</I></A><BR><BR> @@ -68,4 +61,13 @@ Points of Presence<BR><BR> </TABLE> </BODY> </HTML> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +my $accounts_sth = dbh->prepare("SELECT COUNT(*) FROM svc_acct + WHERE popnum = ? ") + or die dbh->errstr; +</%init> |