X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FAdmin%2FElements%2FModifyTemplate;h=a30ae056c116f4e1738e06896384dd7591fbb2e6;hp=ebe7c73bc6eb78d01f0bec32e7e284e38013b643;hb=919e930aa9279b3c5cd12b593889cd6de79d67bf;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500 diff --git a/rt/share/html/Admin/Elements/ModifyTemplate b/rt/share/html/Admin/Elements/ModifyTemplate index ebe7c73bc..a30ae056c 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-2015 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 => ''