Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Authorization-Roles CPAN distribution.

Report information
The Basics
Id: 38634
Status: resolved
Priority: 0/
Queue: Catalyst-Plugin-Authorization-Roles

People
Owner: Nobody in particular
Requestors: jayk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.05
Fixed in: (no value)



Subject: Incompatible class when looking at users in assert_user_roles
In sub assert_user_roles, the following check is made to determine if a user object has been passed in: if ( Scalar::Util::blessed( $roles[0] ) && $roles[0]->isa("Catalyst::Plugin::Authentication::User") ) This fails since Catalyst::Plugin::Authentication 0.10003, in some cases because User objects are not always derived from Catalyst::Plugin::Authentication::User. All users are derived from Catalyst::Authentication::User. There is a Catalyst::Plugin::Authentication::User object but only some stores use this class - and Catalyst::Plugin::Authentication::User isa Catalyst::Authentication::User compatibility shim anyway. Jay
This was fixed in SVN by someone. I pushed the new version to CPAN. Jay