[Rt-commit] rt branch, dashboard-acl-query, updated. rt-3.9.6-367-gb9acd4c
Shawn Moore
sartak at bestpractical.com
Mon Dec 6 16:21:06 EST 2010
The branch, dashboard-acl-query has been updated
via b9acd4c137bdc560a7f070686486d0d8ccd64ddb (commit)
from bdfff712437663f703c51f733a499288b89e26e2 (commit)
Summary of changes:
lib/RT/Dashboard.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit b9acd4c137bdc560a7f070686486d0d8ccd64ddb
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Mon Dec 6 16:20:56 2010 -0500
Fix HasRight calls
diff --git a/lib/RT/Dashboard.pm b/lib/RT/Dashboard.pm
index 09e9a2c..2144264 100644
--- a/lib/RT/Dashboard.pm
+++ b/lib/RT/Dashboard.pm
@@ -369,7 +369,7 @@ sub ObjectsForLoading {
my $CurrentUser = $self->CurrentUser;
push @objects, $CurrentUser->UserObj
- if $CurrentUser->HasRight(Object => $RT::System, 'SeeOwnDashboard');
+ if $CurrentUser->HasRight(Object => $RT::System, Right => 'SeeOwnDashboard');
my $groups = RT::Groups->new($CurrentUser);
@@ -381,7 +381,7 @@ sub ObjectsForLoading {
push @objects, RT::System->new($CurrentUser)
- if $CurrentUser->HasRight(Object => $RT::System, 'SeeDashboard');
+ if $CurrentUser->HasRight(Object => $RT::System, Right => 'SeeDashboard');
return @objects;
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list