[Rt-commit] r11851 - in rt/branches/3.8-TESTING: .

jesse at bestpractical.com jesse at bestpractical.com
Wed Apr 23 17:30:01 EDT 2008


Author: jesse
Date: Wed Apr 23 17:30:01 2008
New Revision: 11851

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/lib/RT/Config.pm

Log:
 r30019 at 31b:  jesse | 2008-04-23 16:10:23 -0400
  make the RT->Config calls not explode when called without a current user


Modified: rt/branches/3.8-TESTING/lib/RT/Config.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/Config.pm	(original)
+++ rt/branches/3.8-TESTING/lib/RT/Config.pm	Wed Apr 23 17:30:01 2008
@@ -384,7 +384,7 @@
     my ($self, $name, $user) = @_;
 
     my $res;
-    if ( $user && $META{ $name }->{'Overridable'} ) {
+    if ( $user&& $user->id && $META{ $name }->{'Overridable'} ) {
         $user = $user->UserObj if $user->isa('RT::CurrentUser');
         my $prefs = $user->Preferences( $RT::System );
         $res = $prefs->{ $name } if $prefs;


More information about the Rt-commit mailing list