add a dropdown to help browse regions by countrycode
[freeside.git] / httemplate / browse / rate.cgi
index 911b2fd..02d670f 100644 (file)
@@ -38,12 +38,6 @@ my $rates_sub = sub {
 
 };
 
-</%once>
-<%init>
-
-die "access denied"
-  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
-
 my $html_init = 
   'Rate plans for VoIP and call billing.<BR><BR>'.
   qq!<A HREF="${p}edit/rate.cgi"><I>Add a rate plan</I></A>!.
@@ -61,4 +55,10 @@ my $count_query = 'SELECT COUNT(*) FROM rate';
 
 my $link = [ $p.'edit/rate.cgi?', 'ratenum' ];
 
+</%once>
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
 </%init>