test
This commit is contained in:
1 parent
346abfe91d
commit
e5f7c66d1e
17 files changed
+4
-5371
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user