summaryrefslogtreecommitdiffstats
path: root/modules/middleware/auth.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/auth.go
parente385efcc22665e9d84ffd7644abe58f30fe57e15 (diff)
downloadgitea-b3cfd9fe0c293ba9d84d38ec140db2c01b1e3109.tar.gz
gitea-b3cfd9fe0c293ba9d84d38ec140db2c01b1e3109.zip
Fix SSH key bug in windows
Diffstat (limited to 'modules/middleware/auth.go')
-rw-r--r--modules/middleware/auth.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/middleware/auth.go b/modules/middleware/auth.go
index b557188ee9..3224b3df91 100644
--- a/modules/middleware/auth.go
+++ b/modules/middleware/auth.go
@@ -49,6 +49,7 @@ func Toggle(options *ToggleOptions) martini.Handler {
ctx.Error(403)
return
}
+ ctx.Data["PageIsAdmin"] = true
}
}
}