From: Jess Robinson Date: Mon, 21 May 2012 13:19:41 +0000 (+0000) Subject: Pass user object to traditions as we have one already usually. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b483c18b3d551d6a18e7a7d6c467a33858980090;p=scpubgit%2Fstemmaweb.git Pass user object to traditions as we have one already usually. --- diff --git a/lib/stemmaweb/Controller/Root.pm b/lib/stemmaweb/Controller/Root.pm index a3505f5..b8238dc 100644 --- a/lib/stemmaweb/Controller/Root.pm +++ b/lib/stemmaweb/Controller/Root.pm @@ -49,7 +49,7 @@ sub directory :Local :Args(0) { my( $self, $c ) = @_; my $m = $c->model('Directory'); # TODO not used yet, will load user texts later - my $user = $c->user_exists ? $c->user->id : 'public'; + my $user = $c->user_exists ? $c->user->get_object : 'public'; # my $user = $c->request->param( 'user' ) || 'ALL'; my @textlist = $m->traditionlist($user); $c->stash->{texts} = \@textlist;