Whoops, this should fix the SIGSEGV.

This commit is contained in:
Azareal 2019-02-28 17:34:56 +10:00
parent cc1d0f089a
commit a4b579d75d
1 changed files with 9 additions and 9 deletions

View File

@ -194,16 +194,16 @@ func userCheck(w http.ResponseWriter, r *http.Request, user *User) (header *Head
}
header = &Header{
Site: Site,
Settings: SettingBox.Load().(SettingMap),
Themes: Themes,
Theme: theme,
CurrentUser: *user, // ! Some things rely on this being a pointer downstream from this function
Hooks: GetHookTable(),
Zone: "frontend",
Writer: w,
GoogSiteVerify: header.Settings["google_site_verify"].(string),
Site: Site,
Settings: SettingBox.Load().(SettingMap),
Themes: Themes,
Theme: theme,
CurrentUser: *user, // ! Some things rely on this being a pointer downstream from this function
Hooks: GetHookTable(),
Zone: "frontend",
Writer: w,
}
header.GoogSiteVerify = header.Settings["google_site_verify"].(string)
if user.IsBanned {
header.AddNotice("account_banned")