Ok, I found that the recursion error is happening when trying to store the 
role in the session.

my $roles = $c->model('authdb::User')->find( { 'username' => $username }, 
{
                                prefetch => 'roles',
                                columns => 'roles.role',
                        });
                        #$c->session(role => $roles);

When I comment it out the error goes away. I switched back to the above 
code. I am getting "No such relationship roles on User" error but I have 
this in my User.pm:

__PACKAGE__->many_to_many("roles", "user_roles", "role");

I do not understand why it refuses to acknowledge it. 

Regards



Kenneth McLane
 700 Locust St

Systems Compliance Services
 Dubuque, 52001-6838
I1OB
 USA
GTS Services Delivery
 

Phone:
+1-563-845-4674
 

Tie-Line:
946-4674
 

Mobile:
+1-563-940-7147
 

e-mail:
[email protected]
 

"Ideas come from everything" -- Alfred Hitchcock
 
 

<<image/gif>>

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to