From: Sven Schöling Date: Mon, 13 Feb 2012 17:35:04 +0000 (+0100) Subject: Template Editor auch im Backend auf Admin Recht gesetzt. X-Git-Tag: release-2.7.0beta2~5^2~4 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=15c3d13829af434873b0a3a1efe4ab6fa2e00b19;p=kivitendo-erp.git Template Editor auch im Backend auf Admin Recht gesetzt. --- diff --git a/bin/mozilla/amtemplates.pl b/bin/mozilla/amtemplates.pl index 1545f656e..4bc6f017b 100644 --- a/bin/mozilla/amtemplates.pl +++ b/bin/mozilla/amtemplates.pl @@ -63,7 +63,7 @@ sub display_template { my $form = $main::form; - $main::auth->assert('config'); + $main::auth->assert('admin'); $form->{edit} = 0; display_template_form(); @@ -76,7 +76,7 @@ sub edit_template { my $form = $main::form; - $main::auth->assert('config'); + $main::auth->assert('admin'); $form->{edit} = 1; display_template_form(); @@ -91,7 +91,7 @@ sub save_template { my %myconfig = %main::myconfig; my $locale = $main::locale; - $main::auth->assert('config'); + $main::auth->assert('admin'); $form->isblank("formname", $locale->text("You're not editing a file.")) unless ($form->{type} eq "stylesheet"); @@ -113,7 +113,7 @@ sub display_template_form { my %myconfig = %main::myconfig; my $locale = $main::locale; - $main::auth->assert('config'); + $main::auth->assert('admin'); if ($form->{"formname"} =~ m|\.\.| || $form->{"formname"} =~ m|^/|) { $form->{"formname"} =~ s|.*/||;