Hi, I have the following in Boot
val menuDispatch:List[PartialFunction[Box[Req], Loc.LocParam]] = List({ case Full(Req(path, _, _)) if !User.loggedIn_? && path != List("profile","login") && path != List("profile", "lost_password") => Loc.EarlyResponse(() => Full(RedirectResponse("/profile/login?returnTo="+S.uri))) }) LiftRules.setSiteMap(SiteMap(menuDispatch,entries:_*)) Which, in essense, says that all urls besides /profile/{login,lost_password} are protected and an anonymous user gets redirected to the login page if trying to access any other page. This works fine for normal pages defined in the sitemap, but entries that are generated by CRUDify rewriting (edit & view) doesn't seem to be hit by the above. Ie for urls like http://localhost:8080/assets/edit/5817, an anonymous user is not redirected to the login page (at least, not before findForParam is called) Any clues? /Jeppe --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---