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

sartak at bestpractical.com sartak at bestpractical.com
Mon May 5 19:37:38 EDT 2008


Author: sartak
Date: Mon May  5 19:37:32 2008
New Revision: 12077

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

Log:
 r54897 at onn:  sartak | 2008-05-05 06:10:34 -0400
 Don't include Subscription tab if user lacks right SubscribeDashboard


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 19:37:32 2008
@@ -86,6 +86,9 @@
         }
     };
 
+    delete $tabs->{"this"}{"subtabs"}{"c_Subscription"}
+        if !$session{'CurrentUser'}->HasRight(Right => 'SubscribeDashboard', Object => $RT::System);
+
     $current_subtab = $modify;
 }
 


More information about the Rt-commit mailing list