aboutsummaryrefslogtreecommitdiff
path: root/modules/middleware/context.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-22 14:27:03 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-22 14:27:03 -0400
commitb3cfd9fe0c293ba9d84d38ec140db2c01b1e3109 (patch)
treea3eae2bb9c9603209d16d51bed185011b35c8fb9 /modules/middleware/context.go
parente385efcc22665e9d84ffd7644abe58f30fe57e15 (diff)
Fix SSH key bug in windows
Diffstat (limited to 'modules/middleware/context.go')
-rw-r--r--modules/middleware/context.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index b28953fc..5727b4f0 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -216,10 +216,6 @@ func InitContext() martini.Handler {
ctx.Data["SignedUserId"] = user.Id
ctx.Data["SignedUserName"] = user.LowerName
ctx.Data["IsAdmin"] = ctx.User.IsAdmin
-
- if ctx.User.IsAdmin {
- ctx.Data["PageIsAdmin"] = true
- }
}
// get or create csrf token