[Jifty-commit] r834 - in jifty/trunk: lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Apr 11 10:04:44 EDT 2006
Author: alexmv
Date: Tue Apr 11 10:04:43 2006
New Revision: 834
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Object.pm
Log:
r12201 at zoq-fot-pik: chmrr | 2006-04-11 10:04:23 -0400
* In some cases, superuser is id 0; hence, check defined-ness
Modified: jifty/trunk/lib/Jifty/Object.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Object.pm (original)
+++ jifty/trunk/lib/Jifty/Object.pm Tue Apr 11 10:04:43 2006
@@ -82,7 +82,7 @@
next unless $caller_self->can('current_user');
eval {
- if ( $caller_self->current_user and $caller_self->current_user->id) {
+ if ( $caller_self->current_user and defined $caller_self->current_user->id) {
$self->current_user($caller_self->current_user());
}
};
More information about the Jifty-commit
mailing list