Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Dev
Force $c->user to return undef
 

Index | Next | Previous | View Flat


ton.voon at altinity

Sep 18, 2008, 7:47 AM


Views: 728
Permalink
Force $c->user to return undef

Hi!

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.

Opinions?

Ton

http://www.altinity.com
UK: +44 (0)870 787 9243
US: +1 866 879 9184
Fax: +44 (0)845 280 1725
Skype: tonvoon
Attachments: cat_auth_return_undef_for_no_user.patch (1.45 KB)

Subject User Time
Force $c->user to return undef ton.voon at altinity Sep 18, 2008, 7:47 AM
    Re: Force $c->user to return undef dbix-class at trout Sep 28, 2008, 6:18 AM
    Re: Force $c->user to return undef jayk at ion0 Sep 29, 2008, 9:29 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.