diff options
author | Unknown <joe2010xtmf@163.com> | 2014-07-04 01:25:06 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-07-04 01:25:06 -0400 |
commit | 36292060d603452deaad03e5e686fae3f7c3f8a8 (patch) | |
tree | 6abb9c79c44c0014b9c6e80aea059de86e2091f6 /modules | |
parent | cdffdeddc90a69e88fab92487ff5ccf90eb47c08 (diff) | |
download | gitea-36292060d603452deaad03e5e686fae3f7c3f8a8.tar.gz gitea-36292060d603452deaad03e5e686fae3f7c3f8a8.zip |
Fix bug that collaborators are able to modify settings of repository
Diffstat (limited to 'modules')
-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 1cfae0b771..8aa4a6a8a6 100644 --- a/modules/middleware/repo.go +++ b/modules/middleware/repo.go @@ -260,7 +260,7 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler { } } -func RequireOwner() martini.Handler { +func RequireTrueOwner() martini.Handler { return func(ctx *Context) { if !ctx.Repo.IsTrueOwner { if !ctx.IsSigned { |