Skip to content

Instantly share code, notes, and snippets.

@dph01
Created July 8, 2012 21:36
Show Gist options
  • Save dph01/3072946 to your computer and use it in GitHub Desktop.
Save dph01/3072946 to your computer and use it in GitHub Desktop.
val MustBeAdmin = If(() => User.superUser_?, "")
val entries = List(Menu("Home") / "index" >> LocGroup("main"),
Menu("Page 3") / "page3" >> LocGroup("main") >> PlaceHolder submenus (
Menu("Page 3a") / "page3a" ,
Menu("Page 3b") / "page3b" ,
Menu("Page 3c") / "page3c",
Menu("Admin 4") / "admin4" >> MustBeAdmin ),
Menu("Admin") / "dummyAdmin" >> MustBeAdmin >> LocGroup("main") >> PlaceHolder submenus (
Menu("Admin 1") / "admin1" ,
Menu("Admin 2") / "admin2" ,
Menu("Admin 3") / "admin3"
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment