[Rt-commit] r18997 - rt/3.999/trunk/lib/RT/Search
ruz at bestpractical.com
ruz at bestpractical.com
Tue Mar 31 10:32:03 EDT 2009
Author: ruz
Date: Tue Mar 31 10:32:02 2009
New Revision: 18997
Modified:
rt/3.999/trunk/lib/RT/Search/Googleish.pm
Log:
* after load check if we actually loaded the user
Modified: rt/3.999/trunk/lib/RT/Search/Googleish.pm
==============================================================================
--- rt/3.999/trunk/lib/RT/Search/Googleish.pm (original)
+++ rt/3.999/trunk/lib/RT/Search/Googleish.pm Tue Mar 31 10:32:02 2009
@@ -132,6 +132,7 @@
elsif ( $User
= RT::Model::User->new( current_user => $self->tickets_obj->current_user )
and $User->load($key)
+ and $User->id
and $User->privileged )
{
push @owner_clauses, "Owner = '" . $User->name . "'";
More information about the Rt-commit
mailing list