summaryrefslogtreecommitdiffstats
path: root/modules/middleware/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/middleware/context.go')
-rw-r--r--modules/middleware/context.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index 9870b41541..8a8867da4d 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -217,9 +217,11 @@ func Contexter() macaron.Handler {
ctx.IsSigned = true
ctx.Data["IsSigned"] = ctx.IsSigned
ctx.Data["SignedUser"] = ctx.User
+ ctx.Data["SignedUserID"] = ctx.User.Id
ctx.Data["SignedUserName"] = ctx.User.Name
ctx.Data["IsAdmin"] = ctx.User.IsAdmin
} else {
+ ctx.Data["SignedUserID"] = 0
ctx.Data["SignedUserName"] = ""
}