Improved admin stuff

This commit is contained in:
2017-10-07 23:24:09 +02:00
parent a9324b4740
commit b8f52e1217
8 changed files with 77 additions and 11 deletions

View File

@ -32,8 +32,12 @@ component Sidebar(user *arn.User)
Icon("search")
FuzzySearch
if user != nil && (user.Role == "admin" || user.Role == "editor")
SidebarButton("Admin", "/admin", "wrench")
if user != nil
if user.Role == "admin"
SidebarButton("Admin", "/admin", "wrench")
if user.Role == "editor"
SidebarButton("Editor", "/editor", "pencil")
SidebarButton("Help", "/thread/I3MMiOtzR", "question-circle")