Whoops, this should fix the SIGSEGV.
This commit is contained in:
parent
cc1d0f089a
commit
a4b579d75d
@ -194,16 +194,16 @@ func userCheck(w http.ResponseWriter, r *http.Request, user *User) (header *Head
|
|||||||
}
|
}
|
||||||
|
|
||||||
header = &Header{
|
header = &Header{
|
||||||
Site: Site,
|
Site: Site,
|
||||||
Settings: SettingBox.Load().(SettingMap),
|
Settings: SettingBox.Load().(SettingMap),
|
||||||
Themes: Themes,
|
Themes: Themes,
|
||||||
Theme: theme,
|
Theme: theme,
|
||||||
CurrentUser: *user, // ! Some things rely on this being a pointer downstream from this function
|
CurrentUser: *user, // ! Some things rely on this being a pointer downstream from this function
|
||||||
Hooks: GetHookTable(),
|
Hooks: GetHookTable(),
|
||||||
Zone: "frontend",
|
Zone: "frontend",
|
||||||
Writer: w,
|
Writer: w,
|
||||||
GoogSiteVerify: header.Settings["google_site_verify"].(string),
|
|
||||||
}
|
}
|
||||||
|
header.GoogSiteVerify = header.Settings["google_site_verify"].(string)
|
||||||
|
|
||||||
if user.IsBanned {
|
if user.IsBanned {
|
||||||
header.AddNotice("account_banned")
|
header.AddNotice("account_banned")
|
||||||
|
Loading…
Reference in New Issue
Block a user