This commit is contained in:
life
2014-11-09 22:14:08 +08:00
parent 346abfe91d
commit e5f7c66d1e
17 changed files with 4 additions and 5371 deletions

View File

@ -196,6 +196,9 @@ func (c BaseController) SetLocale() string {
func (c BaseController) SetUserInfo() {
userInfo := c.GetUserInfo()
c.RenderArgs["userInfo"] = userInfo
if(userInfo.Username == adminUsername) {
c.RenderArgs["isAdmin"] = true
}
}
// life