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

No files matched your search

+3
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