X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fam.pl;h=51f8f69815352725787ea2d930d5a572a1bddb04;hb=919007c2bfb65ec08728d3f647446465860bb7f9;hp=87ec9b30de77fd7f4a1baf68f7b27992dbcb0836;hpb=c7f9da819e437745d637e714993959e57244655a;p=kivitendo-erp.git diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 87ec9b30d..51f8f6981 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -31,6 +31,7 @@ # #====================================================================== +use SL::Auth; use SL::AM; use SL::CA; use SL::Form; @@ -57,13 +58,13 @@ sub continue { call_sub($form->{"nextsub"}); } sub add_account { $lxdebug->enter_sub(); + $auth->assert('config'); + $form->{title} = "Add"; $form->{charttype} = "A"; AM->get_account(\%myconfig, \%$form); - $form->{callback} = - "$form->{script}?action=list_account&login=$form->{login}&password=$form->{password}" - unless $form->{callback}; + $form->{callback} = "am.pl?action=list_account" unless $form->{callback}; &account_header; &form_footer; @@ -74,6 +75,8 @@ sub add_account { sub edit_account { $lxdebug->enter_sub(); + $auth->assert('config'); + $form->{title} = "Edit"; AM->get_account(\%myconfig, \%$form); @@ -90,6 +93,8 @@ sub edit_account { sub account_header { $lxdebug->enter_sub(); + $auth->assert('config'); + if ( $form->{action} eq 'edit_account') { $form->{account_exists} = '1'; } @@ -161,7 +166,7 @@ sub account_header { if ($item eq ''){ $form->{ACCOUNT_TAXKEYS}[$i]{select_tax} .= qq|