X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Fsvc_acct_pop.cgi;h=e71a8a7328c4b832557e35930eea78dc2a8f3302;hp=44bc651cf497e2eb1bca25d8fb0ea28e23bdfa54;hb=ac8410cdb67639afeb84c84e975fffadf3e6cce1;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195 diff --git a/httemplate/browse/svc_acct_pop.cgi b/httemplate/browse/svc_acct_pop.cgi index 44bc651cf..e71a8a732 100755 --- a/httemplate/browse/svc_acct_pop.cgi +++ b/httemplate/browse/svc_acct_pop.cgi @@ -23,12 +23,16 @@ $num_accounts_sub, ], 'align' => 'rllrrrr', + 'links' => [ map { $svc_acct_pop_link } (1..6) ], ) %> <%init> +my $curuser = $FS::CurrentUser::CurrentUser; + die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + unless $curuser->access_right('Dialup configuration') + || $curuser->access_right('Dialup global configuration'); my $html_init = qq! Add new Access Number @@ -42,7 +46,7 @@ my $query = { 'select' => '*, ', 'table' => 'svc_acct_pop', #'hashref' => { 'disabled' => '' }, - 'extra_sql' => 'ORDER BY state, city, ac, exch, loc', + 'order_by' => 'ORDER BY state, city, ac, exch, loc', }; my $count_query = "SELECT COUNT(*) FROM svc_acct_pop"; # WHERE DISABLED IS NULL OR DISABLED = ''";