diff options
author | Unknwon <u@gogs.io> | 2015-02-22 22:55:35 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-02-22 22:55:35 -0500 |
commit | 10e4b5b6c66d1a1a17d975dea28b090eaa404cad (patch) | |
tree | 51fc71aee19cecbd734c63cc08116711c367cd7c /cmd/web.go | |
parent | 7ccab9cd09eca8fa60fdd519c97c259d4b521abd (diff) | |
parent | fc4dff1b1727682b9641f9238f583cfade2901be (diff) | |
download | gitea-10e4b5b6c66d1a1a17d975dea28b090eaa404cad.tar.gz gitea-10e4b5b6c66d1a1a17d975dea28b090eaa404cad.zip |
Merge branch 'access' of github.com:gogits/gogs into access
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 1b692ceb48..8213baab2c 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -318,7 +318,7 @@ func runWeb(ctx *cli.Context) { m.Get("/template/*", dev.TemplatePreview) } - reqTrueOwner := middleware.RequireTrueOwner() + reqAdmin := middleware.RequireAdmin() // Organization. m.Group("/org", func() { @@ -393,7 +393,7 @@ func runWeb(ctx *cli.Context) { m.Post("/:name", repo.GitHooksEditPost) }, middleware.GitHookService()) }) - }, reqSignIn, middleware.RepoAssignment(true), reqTrueOwner) + }, reqSignIn, middleware.RepoAssignment(true), reqAdmin) m.Group("/:username/:reponame", func() { m.Get("/action/:action", repo.Action) |