Subject: | Make $c->req->{user} a CDBI object |
After applying this patch, $c->req->{user} is no longer just the username of the authenticated user, it is a CDBI object representing the relevant row in the users table.
86c86
< $user_class->search(
---
> my $obj = $user_class->search(
88c88
< )
---
> )->first
91c91
< $c->request->{user} = $user;
---
> $c->request->{user} = $obj;
248,249c248
< if ( my $user =
< $user_class->search( { $user_field => $c->request->{user} } )->first )
---
> if ( my $user = $c->request->{user} )