I could have sworn this had been covered recently on the list but I can't
seem to find it. I'd like to have a rewrite function that checks to see if
someone is logged in and in the proper role before allowing them to get to
the page. I had wanted to do this using LiftRules.addRewriteBefore combined
with two SessionVars that would hold the user name and their roles (if
logged in). Unfortunately, it looks like SessionVars don't seem to be usable
inside the rewrite function because the LiftSession hasn't been set up yet
at that point. I'm I missing something obvious, or does anyone have some
suggestions for doing it in a different/better way?

Thanks,

Derek

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" 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/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to