[Rt-commit] rt branch, new-style-templates, updated. rt-3.8.8-281-g13bfc0e

Shawn Moore sartak at bestpractical.com
Thu Aug 5 17:39:48 EDT 2010


The branch, new-style-templates has been updated
       via  13bfc0ecc79c5b48f83d4130f7e0118f3ac91ae9 (commit)
      from  3b4820bb37223e5d78d5c1176e753e0bccb4073b (commit)

Summary of changes:
 share/html/Admin/Elements/EditScrip |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 13bfc0ecc79c5b48f83d4130f7e0118f3ac91ae9
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Aug 5 17:39:27 2010 -0400

    Only show user-defined edit boxes if you have ExecutePerl

diff --git a/share/html/Admin/Elements/EditScrip b/share/html/Admin/Elements/EditScrip
index bf8d3dd..42e6b95 100755
--- a/share/html/Admin/Elements/EditScrip
+++ b/share/html/Admin/Elements/EditScrip
@@ -93,6 +93,7 @@
     Reset => 1,
 &><br />
 
+% if ($session{CurrentUser}->HasRight(Object => $RT::System, Right => 'ExecuteCode')) {
 <&| /Widgets/TitleBox, title => loc('User Defined conditions and actions') &>
 <table>
 <tr><td colspan="2">
@@ -123,6 +124,8 @@
 </table>
 </&>
 
+% }
+
 <& /Elements/Submit,
     Label => $SubmitLabel,
     Reset => 1,

-----------------------------------------------------------------------


More information about the Rt-commit mailing list