--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
One thing that I was wondering about before I started, is LocGroup supposed to function like what I wanted to happen? Because from what I can tell it is only ever used for discriminating user access to menus. I was considering trying to refactor it to UserGroup (the group property and the group method) and then have a MenuGroup at least inside of the Menu snippet, renaming LocGroup is probably not an option at the moment.
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
override def loginMenuLocParams: List[LocParam[Unit]] =
LocGroup("public") :: super.loginMenuLocParams
Adding LocGroups to a list of Locs would be a nice feature though.
I probably am misunderstanding here, but
> shows the admin link in the top bar regardless of superuser status
Is MustBeLoggedIn enough here? I'm asking since you're using the same LocParam for the normal user entries, right? Wouldn't you need something that checked if the user is admin or not?
Alright so I fixed up my access control so the admin and user links are all ok now, however I've come back around to the original problem. I know that you said, David, that Locgroup is what I was looking for but it does not seem to work entirely as I expect it to. I could very well just be doing something wrong but on my admin page which has a top bar menu built with lift:Menu.builder group="public" and a sidebar menu built with <span class="lift:Menu.builder" group="admin"> the top bar shows the correct group of menus but the sidebar displays the entire sitemap. I thought that perhaps admin was a magic group for everything so I changed it to control but got the same results. Any ideas about what could be wrong? the current sitemap definition is
val entries = List(Menu("Home") / "index" >> LocGroup("public"),Menu("News and Jobs") / "NewsJobs" >> LocGroup("public") >> MustBeLoggedIn,Menu("Messages and People") / "MessagesPeople" >> LocGroup("public") >> MustBeLoggedIn,Menu("Profile temp link") / "profile" / "profile" >> LocGroup("public") >> Hidden,Menu("Even or Job Listing") / "Listing" >> LocGroup("public") >> Hidden,Menu("Admin") / "admin" / "index" >> MustBeLoggedIn >> MustBeAdmin >> LocGroup("public"),Menu("Message Control") / "admin" / "Message" >> MustBeLoggedIn >> LocGroup("control") submenus(Message.menus : _*)) :::User.menusThanks a lot for all the help guys
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.