diff options
author | Unknwon <u@gogs.io> | 2015-02-28 21:50:29 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-02-28 21:50:29 -0500 |
commit | b0b11fd7b1bd5e556c27ccae73668b7df74cd73e (patch) | |
tree | 134a3b875952990ffe83f5b583d461b6b2e942df /cmd/web.go | |
parent | 3a6ba39a61c68d967c6c08aa087d2de2d0bf7ec0 (diff) | |
parent | f44204e9449c09e0fef37a4974dc2f2043593d6f (diff) | |
download | gitea-b0b11fd7b1bd5e556c27ccae73668b7df74cd73e.tar.gz gitea-b0b11fd7b1bd5e556c27ccae73668b7df74cd73e.zip |
Merge branch 'access' of github.com:gogits/gogs into dev
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) |