diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-27 16:39:36 +0800 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-27 16:39:36 +0800 |
commit | 9baf2b38d025eaf1d9bbb10a4616c71813ea7054 (patch) | |
tree | a6b8f31a638f2ca286e2c99e1c43c48e59e9c9c6 /cmd | |
parent | 50de06056be67ab8433fa796608e38004f2e8733 (diff) | |
download | gitea-9baf2b38d025eaf1d9bbb10a4616c71813ea7054.tar.gz gitea-9baf2b38d025eaf1d9bbb10a4616c71813ea7054.zip |
Bug fix on organization
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd/web.go b/cmd/web.go index cc9fa385c3..764e2c1b92 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -226,10 +226,6 @@ func runWeb(*cli.Context) { r.Post("/create", bindIgnErr(auth.CreateOrgForm{}), org.CreatePost) m.Group("/:org", func(r *macaron.Router) { - r.Get("", org.Home) - }, middleware.OrgAssignment(true)) - - m.Group("/:org", func(r *macaron.Router) { r.Get("/dashboard", user.Dashboard) r.Get("/members", org.Members) r.Get("/members/action/:action", org.MembersAction) @@ -257,6 +253,9 @@ func runWeb(*cli.Context) { r.Route("/invitations/new", "GET,POST", org.Invitation) }, middleware.OrgAssignment(true, true, true)) }, reqSignIn) + m.Group("/org", func(r *macaron.Router) { + r.Get("/:org", org.Home) + }, middleware.OrgAssignment(true)) // Repository routers. m.Group("/repo", func(r *macaron.Router) { |