summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-02-21 08:55:30 +0100
committer无闻 <u@gogs.io>2015-02-21 08:55:30 +0100
commitfc4dff1b1727682b9641f9238f583cfade2901be (patch)
treef4a97c1b16c718f77292fff2277bb1e631c3216b /cmd
parentMerge pull request #958 from phsmit/fix_mirror_access (diff)
parentUpdating context and fixing permission issues (diff)
downloadforgejo-fc4dff1b1727682b9641f9238f583cfade2901be.tar.xz
forgejo-fc4dff1b1727682b9641f9238f583cfade2901be.zip
Merge pull request #959 from phsmit/access_update
Updating context and fixing permission issues
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 3284acb9df..8b3b03c45e 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -319,7 +319,7 @@ func runWeb(ctx *cli.Context) {
m.Get("/template/*", dev.TemplatePreview)
}
- reqTrueOwner := middleware.RequireTrueOwner()
+ reqAdmin := middleware.RequireAdmin()
// Organization.
m.Group("/org", func() {
@@ -394,7 +394,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)