Perl-Sensitive Sunglasses | |
PerlMonks |
Re: User authorization and design of larger web/intranet applications.by johnnywang (Priest) |
on Oct 10, 2005 at 17:48 UTC ( [id://498898]=note: print w/replies, xml ) | Need Help?? |
Just want to say that I do exactly what you're doing with C::A, i.e., put DB connection in setup(), and authentication in cgi_prerun(). For authorization, my applications usually only have a few roles, so I usually just check some flags similar to authentication (e.g., is the admin flag set? the sub classes can decide which flag they want.)
In Section
Seekers of Perl Wisdom
|
|