summaryrefslogtreecommitdiffstats
path: root/modules/middleware/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-03 17:42:09 +0800
committerUnknwon <u@gogs.io>2015-08-03 17:42:09 +0800
commit04458d49a066c8befd79b59e62df00fbf49fa46b (patch)
tree0b076d7ec40d979769587d3ad13c5a326fbdb9a5 /modules/middleware/repo.go
parent8e8d535e233966acd1510df78c01e11dc8156514 (diff)
downloadgitea-04458d49a066c8befd79b59e62df00fbf49fa46b.tar.gz
gitea-04458d49a066c8befd79b59e62df00fbf49fa46b.zip
milestone: list view
Diffstat (limited to 'modules/middleware/repo.go')
-rw-r--r--modules/middleware/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index a200d6d66f..de0d78293a 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -348,7 +348,7 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler {
}
}
-func RequireAdmin() macaron.Handler {
+func RequireRepoAdmin() macaron.Handler {
return func(ctx *Context) {
if ctx.Repo.AccessMode < models.ACCESS_MODE_ADMIN {
if !ctx.IsSigned {