1
0
Fork 0
forked from forgejo/forgejo

Work on admin

This commit is contained in:
Unknown 2014-03-20 08:02:14 -04:00
parent 9f9cd6bfc6
commit 4cf6cc63b0
6 changed files with 10 additions and 14 deletions

View file

@ -14,7 +14,6 @@ import (
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/modules/auth"
"github.com/gogits/gogs/modules/base"
"github.com/gogits/gogs/modules/log"
)
@ -112,10 +111,7 @@ func InitContext() martini.Handler {
ctx.Data["SignedUser"] = user
ctx.Data["SignedUserId"] = user.Id
ctx.Data["SignedUserName"] = user.LowerName
if ctx.User.IsAdmin || ctx.User.LowerName == base.AdminName {
ctx.Data["IsAdmin"] = true
}
ctx.Data["IsAdmin"] = ctx.User.IsAdmin
}
ctx.Data["PageStartTime"] = time.Now()