[Rt-commit] r19270 - in rt/3.8/trunk: .
alexmv at bestpractical.com
alexmv at bestpractical.com
Fri Apr 17 13:43:49 EDT 2009
Author: alexmv
Date: Fri Apr 17 13:43:48 2009
New Revision: 19270
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/lib/RT/Dashboard.pm
rt/3.8/trunk/lib/RT/System.pm
Log:
r44406 at kohr-ah: chmrr | 2009-04-17 13:43:17 -0400
Dashboards were exploding with "Can't call method AddRights on an undef value"
Modified: rt/3.8/trunk/lib/RT/Dashboard.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Dashboard.pm (original)
+++ rt/3.8/trunk/lib/RT/Dashboard.pm Fri Apr 17 13:43:48 2009
@@ -74,7 +74,7 @@
use base qw/RT::SharedSetting/;
use RT::System;
-RT::System->AddRights(
+RT::System::AddRights(
SubscribeDashboard => 'Subscribe to dashboards', #loc_pair
SeeDashboard => 'View system dashboards', #loc_pair
Modified: rt/3.8/trunk/lib/RT/System.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/System.pm (original)
+++ rt/3.8/trunk/lib/RT/System.pm Fri Apr 17 13:43:48 2009
@@ -141,7 +141,7 @@
=cut
sub AddRights {
- my $self = shift;
+ my $self = shift if ref $_[0] or $_[0] eq __PACKAGE__;
my %new = @_;
$RIGHTS = { %$RIGHTS, %new };
%RT::ACE::LOWERCASERIGHTNAMES = ( %RT::ACE::LOWERCASERIGHTNAMES,
More information about the Rt-commit
mailing list