Refactor User.Id to User.ID

This commit is contained in:
Unknwon committed 2016-07-24 01:08:22 +08:00
1 parent 46e96c008c
commit 1f2e173a74
79 files changed
+333 -328

No files matched your search

+1 -1
View File
@@ -156,7 +156,7 @@ 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["SignedUserID"] = ctx.User.ID
ctx.Data["SignedUserName"] = ctx.User.Name
ctx.Data["IsAdmin"] = ctx.User.IsAdmin
} else {