Fix SSH key bug in windows
This commit is contained in:
@ -49,6 +49,7 @@ func Toggle(options *ToggleOptions) martini.Handler {
|
||||
ctx.Error(403)
|
||||
return
|
||||
}
|
||||
ctx.Data["PageIsAdmin"] = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -216,10 +216,6 @@ func InitContext() martini.Handler {
|
||||
ctx.Data["SignedUserId"] = user.Id
|
||||
ctx.Data["SignedUserName"] = user.LowerName
|
||||
ctx.Data["IsAdmin"] = ctx.User.IsAdmin
|
||||
|
||||
if ctx.User.IsAdmin {
|
||||
ctx.Data["PageIsAdmin"] = true
|
||||
}
|
||||
}
|
||||
|
||||
// get or create csrf token
|
||||
|
Reference in New Issue
Block a user