Skip to content

Commit bfb4042

Browse files
committed
Fix passing user to kitspace
1 parent 49e3e53 commit bfb4042

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

routers/kitspace.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,13 @@ func Kitspace(ctx *context.Context, sess session.Store, x csrf.CSRF) (int, []byt
3232
"",
3333
1,
3434
)
35+
var user *structs.User
36+
if (ctx.User != nil && ctx.IsSigned) {
37+
user = convert.ToUser(ctx.User, true, true)
38+
}
3539

3640
m := KitspaceSession{
37-
User: convert.ToUser(ctx.User, ctx.IsSigned, ctx.User != nil),
41+
User: user,
3842
Csrf: x.GetToken(),
3943
}
4044

0 commit comments

Comments
 (0)