From 15c3d13829af434873b0a3a1efe4ab6fa2e00b19 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 13 Feb 2012 18:35:04 +0100 Subject: [PATCH] Template Editor auch im Backend auf Admin Recht gesetzt. --- bin/mozilla/amtemplates.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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|.*/||; -- 2.20.1