diff options
author | Unknwon <u@gogs.io> | 2015-08-19 23:14:57 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-19 23:14:57 +0800 |
commit | 87f5ca8e1f74616d9dc36a5f6fe57023444ed25c (patch) | |
tree | a1236ad9a0bb90b6d1968e67ce40bf890ba94f47 /modules/middleware | |
parent | a35911486ffe0cd373662219a8f231b9cf38d84c (diff) | |
download | gitea-87f5ca8e1f74616d9dc36a5f6fe57023444ed25c.tar.gz gitea-87f5ca8e1f74616d9dc36a5f6fe57023444ed25c.zip |
able edit issue title
Diffstat (limited to 'modules/middleware')
-rw-r--r-- | modules/middleware/context.go | 2 |
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"] = "" } |