Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^2: Passing Data Back From Mason template

by water (Deacon)
on Jun 04, 2006 at 00:29 UTC ( #553456=note: print w/replies, xml ) Need Help??

in reply to Re: Passing Data Back From Mason template
in thread Passing Data Back From Mason template

Hmmm... don't like embedding roles in URLS -- we often need to change who can do what, create new roles, etc -- would be mess if necessitated remapping urls.

so basically each action (method) in the controller needs a role-list, and jumps off to confirm current user is a member of at least one allowed role, else redirects off to a not-enough-access-to-do-that page, yes?

  • Comment on Re^2: Passing Data Back From Mason template

Replies are listed 'Best First'.
Re^3: Passing Data Back From Mason template
by Joost (Canon) on Jun 04, 2006 at 23:46 UTC
    The url mapping isn't going to be useful to you then :-)

    Yes, I would suggest mapping role-lists against actions. If you do that in the database or whatever storage system you use, or use a consisten interface in your action classes, you can still do a generic access control system after request to action mapping and before dispatching to the action.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://553456]
[marto]: thanks
[Corion]: marto: Maybe it opens offscreen? I wouldn't know an easy way to confirm that, except maybe closing the chromeless window and then looking whether iexplore.exe is still running

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2018-03-21 11:57 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.