diff options
author | Unknwon <u@gogs.io> | 2015-08-03 17:42:09 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-03 17:42:09 +0800 |
commit | 04458d49a066c8befd79b59e62df00fbf49fa46b (patch) | |
tree | 0b076d7ec40d979769587d3ad13c5a326fbdb9a5 /modules/middleware/repo.go | |
parent | 8e8d535e233966acd1510df78c01e11dc8156514 (diff) | |
download | gitea-04458d49a066c8befd79b59e62df00fbf49fa46b.tar.gz gitea-04458d49a066c8befd79b59e62df00fbf49fa46b.zip |
milestone: list view
Diffstat (limited to 'modules/middleware/repo.go')
-rw-r--r-- | modules/middleware/repo.go | 2 |
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 { |