Finished shop system

This commit is contained in:
2017-10-05 13:48:16 +02:00
parent 71303ef351
commit a52668ada5
9 changed files with 127 additions and 11 deletions

View File

@ -20,7 +20,9 @@ component Sidebar(user *arn.User)
//- SidebarButton("Search", "/search", "search")
if user != nil
SidebarButton("Shop", "/shop", "shopping-cart")
if user.Role == "admin" || user.Role == "editor"
SidebarButton("Shop", "/shop", "shopping-cart")
SidebarButton("Statistics", "/statistics", "pie-chart")
SidebarButton("Settings", "/settings", "cog")