From 04458d49a066c8befd79b59e62df00fbf49fa46b Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 3 Aug 2015 17:42:09 +0800 Subject: milestone: list view --- modules/middleware/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/middleware') 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 { -- cgit v1.2.3