Fix SSH key bug in windows
This commit is contained in:
parent
e385efcc22
commit
b3cfd9fe0c
6 changed files with 40 additions and 24 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue