[Rt-commit] r13631 - in rt/3.8/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Thu Jun 26 20:07:12 EDT 2008


Author: sartak
Date: Thu Jun 26 20:07:08 2008
New Revision: 13631

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/lib/RT/SharedSetting.pm

Log:
 r63276 at onn:  sartak | 2008-06-26 17:16:03 -0400
 Log an error when CurrentUserCanSee is called on an incomplete dashboard


Modified: rt/3.8/trunk/lib/RT/SharedSetting.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/SharedSetting.pm	(original)
+++ rt/3.8/trunk/lib/RT/SharedSetting.pm	Thu Jun 26 20:07:08 2008
@@ -367,6 +367,11 @@
     my $self = shift;
     my $privacy = $self->Privacy;
 
+    if (!defined($privacy)) {
+        $RT::Logger->error("CurrentUserCanSee called with a dashboard without privacy.");
+        return 0;
+    }
+
     return 1 if $privacy =~ /^RT::System/;
 
     return 1 if $privacy =~ /^RT::User-(\d+)/


More information about the Rt-commit mailing list