Revision 15c3d138
Von Sven Schöling vor fast 13 Jahren hinzugefügt
bin/mozilla/amtemplates.pl | ||
---|---|---|
63 | 63 |
|
64 | 64 |
my $form = $main::form; |
65 | 65 |
|
66 |
$main::auth->assert('config');
|
|
66 |
$main::auth->assert('admin');
|
|
67 | 67 |
|
68 | 68 |
$form->{edit} = 0; |
69 | 69 |
display_template_form(); |
... | ... | |
76 | 76 |
|
77 | 77 |
my $form = $main::form; |
78 | 78 |
|
79 |
$main::auth->assert('config');
|
|
79 |
$main::auth->assert('admin');
|
|
80 | 80 |
|
81 | 81 |
$form->{edit} = 1; |
82 | 82 |
display_template_form(); |
... | ... | |
91 | 91 |
my %myconfig = %main::myconfig; |
92 | 92 |
my $locale = $main::locale; |
93 | 93 |
|
94 |
$main::auth->assert('config');
|
|
94 |
$main::auth->assert('admin');
|
|
95 | 95 |
|
96 | 96 |
$form->isblank("formname", $locale->text("You're not editing a file.")) unless ($form->{type} eq "stylesheet"); |
97 | 97 |
|
... | ... | |
113 | 113 |
my %myconfig = %main::myconfig; |
114 | 114 |
my $locale = $main::locale; |
115 | 115 |
|
116 |
$main::auth->assert('config');
|
|
116 |
$main::auth->assert('admin');
|
|
117 | 117 |
|
118 | 118 |
if ($form->{"formname"} =~ m|\.\.| || $form->{"formname"} =~ m|^/|) { |
119 | 119 |
$form->{"formname"} =~ s|.*/||; |
Auch abrufbar als: Unified diff
Template Editor auch im Backend auf Admin Recht gesetzt.