X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FAdmin%2FElements%2FModifyTemplate;h=b91e23e4b5cb42e5deb2d4cd4012bbae18a361c2;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=ebe7c73bc6eb78d01f0bec32e7e284e38013b643;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/rt/share/html/Admin/Elements/ModifyTemplate b/rt/share/html/Admin/Elements/ModifyTemplate index ebe7c73bc..b91e23e4b 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-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -48,7 +48,7 @@ - + @@ -57,19 +57,28 @@ - +
<&|/l&>Name:
<&|/l&>Description:
<&|/l&>Type: -><&|/l&>Perl
-><&|/l&>Simple
+ +> +
+ +> +
+
<&|/l&>Content:
<%INIT> -$Type = 'Perl' if !$Type; +unless ($Type) { + $Type = $session{'CurrentUser'}->HasRight(Right => 'ExecuteCode', Object => $RT::System) ? + 'Perl' : 'Simple'; +} @@ -77,5 +86,5 @@ $Type = 'Perl' if !$Type; $Name => '' $Description => '' $Content => '' -$Type => 'Perl' +$Type => ''