Finished shop system
This commit is contained in:
@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user