Improved admin panel

This commit is contained in:
2017-10-02 14:56:51 +02:00
parent b0de2045d7
commit cc2418cd96
12 changed files with 37 additions and 42 deletions

View File

@ -23,7 +23,7 @@ component Sidebar(user *arn.User)
SidebarButton("Statistics", "/statistics", "pie-chart")
SidebarButton("Settings", "/settings", "cog")
if user.Role == "admin"
if user.Role == "admin" || user.Role == "editor"
SidebarButton("Admin", "/admin", "wrench")
.spacer