[Jifty-commit] r1806 - jifty/trunk/lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sun Aug 13 16:38:11 EDT 2006
Author: seanmil
Date: Sun Aug 13 16:38:10 2006
New Revision: 1806
Modified:
jifty/trunk/lib/Jifty/Web.pm
Log:
* Fix so current_user restores properly between session loads
Modified: jifty/trunk/lib/Jifty/Web.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web.pm (original)
+++ jifty/trunk/lib/Jifty/Web.pm Sun Aug 13 16:38:10 2006
@@ -210,9 +210,6 @@
my $currentuser_obj = shift;
$self->session->set(
'user_id' => $currentuser_obj ? $currentuser_obj->id : undef );
- $self->session->set( 'user_ref' => $currentuser_obj
- ? ref $currentuser_obj->user_object
- : undef );
$self->_current_user( $currentuser_obj || undef );
}
@@ -224,11 +221,7 @@
} elsif ( my $id = $self->session->get('user_id') ) {
my $object = (
Jifty->config->framework('ApplicationClass') . "::CurrentUser" )
- ->new();
- my $user
- = $self->session->get('user_ref')->new( current_user => $object );
- $user->load_by_cols( id => $id );
- $object->user_object($user);
+ ->new( id => $id );
$self->_current_user($object);
return $object;
} else {
More information about the Jifty-commit
mailing list