[Rt-commit] r3571 - in rt/branches/3.5-TESTING: . html
trs at bestpractical.com
trs at bestpractical.com
Mon Aug 1 12:31:43 EDT 2005
Author: trs
Date: Mon Aug 1 12:31:41 2005
New Revision: 3571
Modified:
rt/branches/3.5-TESTING/ (props changed)
rt/branches/3.5-TESTING/html/index.html
Log:
r5515 at wintermute: tom | 2005-08-01 12:24:42 -0400
Only show the Edit action if user can ModifySelf
Modified: rt/branches/3.5-TESTING/html/index.html
==============================================================================
--- rt/branches/3.5-TESTING/html/index.html (original)
+++ rt/branches/3.5-TESTING/html/index.html Mon Aug 1 12:31:41 2005
@@ -73,9 +73,7 @@
<& /Elements/Tabs,
current_toptab => '',
Title=>loc("RT at a glance"),
- actions => { A => { title => loc('Edit'),
- path => 'Prefs/MyRT.html'
- } }
+ actions => $actions,
&>
<& /Elements/ListActions, actions => \@results &>
<& /Elements/MyRT &>
@@ -103,6 +101,15 @@
$session{'home_refresh_interval'} = $ARGS{'HomeRefreshInterval'};
}
+my $actions;
+if ($session{'CurrentUser'}->HasRight(Right => 'ModifySelf', Object => $RT::System)) {
+ $actions = {
+ A => { title => loc('Edit'),
+ path => 'Prefs/MyRT.html',
+ },
+ };
+}
+
</%init>
%# --></body></html>
More information about the Rt-commit
mailing list