[Rt-commit] r12071 - in rt/branches/3.8-TESTING: html/Prefs/Dashboards/Elements

sartak at bestpractical.com sartak at bestpractical.com
Mon May 5 02:37:59 EDT 2008


Author: sartak
Date: Mon May  5 02:37:59 2008
New Revision: 12071

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/html/Prefs/Dashboards/Elements/Tabs

Log:
 r54885 at onn:  sartak | 2008-05-05 02:36:06 -0400
 Only display new dashboard if the user has ModifyDashboard


Modified: rt/branches/3.8-TESTING/html/Prefs/Dashboards/Elements/Tabs
==============================================================================
--- rt/branches/3.8-TESTING/html/Prefs/Dashboards/Elements/Tabs	(original)
+++ rt/branches/3.8-TESTING/html/Prefs/Dashboards/Elements/Tabs	Mon May  5 02:37:59 2008
@@ -91,10 +91,12 @@
 
 $tabs->{"A"} = { title => loc('Select dashboard'),
                  path  => "Prefs/Dashboards/index.html" };
-$tabs->{"B"} = { title     => loc('New dashboard'),
-                 path      => "Prefs/Dashboards/Modify.html?Create=1",
-                 separator => 1 };
 
+if ($session{'CurrentUser'}->HasRight(Right => 'ModifyDashboard', Object => $RT::System)) {
+    $tabs->{"B"} = { title     => loc('New dashboard'),
+                     path      => "Prefs/Dashboards/Modify.html?Create=1",
+                     separator => 1 };
+}
 
 </%INIT>
 <%ARGS>


More information about the Rt-commit mailing list