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

@ -17,7 +17,7 @@ import (
func Get(ctx *aero.Context) string {
user := utils.GetUser(ctx)
if user == nil || user.Role != "admin" {
if user == nil || (user.Role != "admin" && user.Role != "editor") {
return ctx.Redirect("/")
}