[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-127-g5890f1d

? sunnavy sunnavy at bestpractical.com
Thu Jul 8 10:50:10 EDT 2010


The branch, 3.9-trunk has been updated
       via  5890f1da2313035a400eaf2e98ef7585913619be (commit)
      from  0874e603ec015d24ff53d9ef160f4d0209e60ce9 (commit)

Summary of changes:
 share/html/Tools/Elements/Tabs |    4 +++-
 share/html/Tools/index.html    |    4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 5890f1da2313035a400eaf2e98ef7585913619be
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Jul 8 22:51:32 2010 +0800

    show dashboard links for users with Create or Modify Dashboard permissions

diff --git a/share/html/Tools/Elements/Tabs b/share/html/Tools/Elements/Tabs
index aa75222..d06d0af 100644
--- a/share/html/Tools/Elements/Tabs
+++ b/share/html/Tools/Elements/Tabs
@@ -69,7 +69,9 @@ my $tabs = {
 };
 
 my $can_see_dashboards = $session{CurrentUser}->HasRight(Right => 'SubscribeDashboard', Object => $RT::System)
-                       || RT::Dashboard->new($session{CurrentUser})->_PrivacyObjects;
+                       || RT::Dashboard->new($session{CurrentUser})->_PrivacyObjects
+                       || RT::Dashboard->new($session{CurrentUser})->_PrivacyObjects( Create => 1 )
+                       || RT::Dashboard->new($session{CurrentUser})->_PrivacyObjects( Modify => 1 );
 
 if ($can_see_dashboards) {
     $tabs->{a} = {
diff --git a/share/html/Tools/index.html b/share/html/Tools/index.html
index 26e0f47..0faaf38 100644
--- a/share/html/Tools/index.html
+++ b/share/html/Tools/index.html
@@ -72,7 +72,9 @@ my $tabs = {
 };
 
 my $can_see_dashboards = $session{CurrentUser}->HasRight(Right => 'SubscribeDashboard', Object => $RT::System)
-                       || RT::Dashboard->new($session{CurrentUser})->_PrivacyObjects;
+                       || RT::Dashboard->new($session{CurrentUser})->_PrivacyObjects
+                       || RT::Dashboard->new($session{CurrentUser})->_PrivacyObjects( Create => 1 )
+                       || RT::Dashboard->new($session{CurrentUser})->_PrivacyObjects( Modify => 1 );
 
 if ($can_see_dashboards) {
     $tabs->{A} = {

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


More information about the Rt-commit mailing list