If a top-level menu item is not accessible, then none of its children are
accessible.  SiteMap does not display any pages that are inaccessible.

In the example, you've got all the menus controlled by the "loggedIn" If()
clause and that's blocking access to menu and thus the menu is not
displayed.

On Tue, May 12, 2009 at 4:54 PM, glenn <[email protected]> wrote:

>
> I have a menu defined as follows:
>
>  def quoteMenu:List[Menu] = {
>      val groupquote = Menu(Loc("groupquote", List("quote", "group"),
> "Group Quote",loggedIn, LocGroup("quote")))
>      ....More menu items
>    }
>
> and an If LocParam to check if the user is logged in:
>
> val loggedIn = If(() => User.loggedIn_?,
> () => RedirectResponse("/login"))
>
> When the sitemap is displayed, the menu item is not visible if the
> user isn't logged in. This is not the behavior
> expected. The user should be able to click on the menu item and be
> redirected to the login page.
>
> Any ideas as to what's going on here. Am I even using the right
> mechanism to control page access?
>
> Glenn...
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
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