From 679854b8bbc65d112071111bbd7f34a6a481fb30 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 4 Jun 2013 00:21:24 -0700 Subject: RT 4.0.13 --- rt/share/html/Admin/Elements/ModifyTemplate | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'rt/share/html/Admin/Elements/ModifyTemplate') diff --git a/rt/share/html/Admin/Elements/ModifyTemplate b/rt/share/html/Admin/Elements/ModifyTemplate index ebe7c73bc..f5bb866de 100755 --- a/rt/share/html/Admin/Elements/ModifyTemplate +++ b/rt/share/html/Admin/Elements/ModifyTemplate @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -63,13 +63,17 @@ <&|/l&>Content: - + <%INIT> -$Type = 'Perl' if !$Type; +unless ($Type) { + $Type = $session{'CurrentUser'}->HasRight(Right => 'ExecuteCode', Object => $RT::System) ? + 'Perl' : 'Simple'; +} @@ -77,5 +81,5 @@ $Type = 'Perl' if !$Type; $Name => '' $Description => '' $Content => '' -$Type => 'Perl' +$Type => '' -- cgit v1.2.1