On Jan 16, 2011, at 7:34 PM, Mark Sobkowicz wrote: > I'm making a website with a demo section, with an event model, a table > showing the events, show pages, etc. I'd like to have a simple way for the > user (who is not logged in) to switch between "admin" versions and "guest" > versions of the page. I could use a lifecycle to switch between modes, but > a lifecycle on what model? I'm looking for the best way to store the > information about what privileges the user currently has. One way would > seem to be to store the information in the session - another might be to > extend the guest model - but I don't know how to do this. A third might be > to create a new model to hold this information. Suggestions?
This sounds like something that would fit well in the session - the controller for the "demo app" section could then check the session and tweak the behavior of the Guest class accordingly. --Matt Jones -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
