Created
July 8, 2012 21:36
-
-
Save dph01/3072946 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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