diff options
Diffstat (limited to 'httemplate/browse/payment_gateway.html')
-rw-r--r-- | httemplate/browse/payment_gateway.html | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/httemplate/browse/payment_gateway.html b/httemplate/browse/payment_gateway.html index 6c14a1006..720858e9b 100644 --- a/httemplate/browse/payment_gateway.html +++ b/httemplate/browse/payment_gateway.html @@ -1,14 +1,3 @@ -% -% -% my %search; -% if ( $cgi->param('showdisabled') ) { -% %search = (); -% } else { -% %search = ( 'disabled' => '' ); -% } -% -% - <% include("/elements/header.html",'Payment gateways', menubar( 'Main Menu' => $p, 'Agents' => $p. 'browse/agent.cgi', @@ -75,4 +64,16 @@ </TABLE> </BODY> </HTML> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +my %search; +if ( $cgi->param('showdisabled') ) { + %search = (); +} else { + %search = ( 'disabled' => '' ); +} +</%init> |