Pathologically Eclectic Rubbish Lister | |
PerlMonks |
(Ovid) Re: Re: Would you use 'goto' here?by Ovid (Cardinal) |
on Dec 06, 2001 at 06:17 UTC ( [id://129834]=note: print w/replies, xml ) | Need Help?? |
Just to give you a taste of what I am doing and why, here's a (heavily edited) version of the dispatch code.
Basically, I use the hash to assign pages and functions for each action (permission) and type (section). We then call the function with all the data that it will need and it returns template data and, if necessary, a new page to send the user to. All functions have the same inputs and outputs. The problem, as I see it, is how the permissions model is set up to prevent people from gaining access to something that they shouldn't. If I start building in a bunch of special cases into the dispatch code, I'm concerned that now, or in maintenance, we'll overlook something in the security portion. Since that's relatively stable, I really want all changes to occur after security has been nicely wrapped up. Cheers, Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In Section
Seekers of Perl Wisdom
|
|