Skip to content

Commit

Permalink
Fix passing user to kitspace
Browse files Browse the repository at this point in the history
  • Loading branch information
kasbah committed Aug 24, 2020
1 parent 49e3e53 commit bfb4042
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion routers/kitspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ func Kitspace(ctx *context.Context, sess session.Store, x csrf.CSRF) (int, []byt
"",
1,
)
var user *structs.User
if (ctx.User != nil && ctx.IsSigned) {
user = convert.ToUser(ctx.User, true, true)
}

m := KitspaceSession{
User: convert.ToUser(ctx.User, ctx.IsSigned, ctx.User != nil),
User: user,
Csrf: x.GetToken(),
}

Expand Down

0 comments on commit bfb4042

Please sign in to comment.