[Catalyst-dev] Force $c->user to return undef

Ton Voon ton.voon at altinity.com
Thu Sep 18 15:47:54 BST 2008


Is the attached a valid patch to C::P::Authentication 0.10007?

I have some functions in Opsview where I do function_call( $c->user,  
$other_data). But if $c->user does not exist, C::P::A returns an empty  
list, which is considered no value in the function call. The patch  
forces an undef.



UK: +44 (0)870 787 9243
US: +1 866 879 9184
Fax: +44 (0)845 280 1725
Skype: tonvoon

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cat_auth_return_undef_for_no_user.patch
Type: application/octet-stream
Size: 1480 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst-dev/attachments/20080918/1a62821e/cat_auth_return_undef_for_no_user.obj
-------------- next part --------------

More information about the Catalyst-dev mailing list