summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-27 16:39:36 +0800
committerUnknwon <joe2010xtmf@163.com>2014-08-27 16:39:36 +0800
commit9baf2b38d025eaf1d9bbb10a4616c71813ea7054 (patch)
treea6b8f31a638f2ca286e2c99e1c43c48e59e9c9c6 /cmd
parent50de06056be67ab8433fa796608e38004f2e8733 (diff)
downloadgitea-9baf2b38d025eaf1d9bbb10a4616c71813ea7054.tar.gz
gitea-9baf2b38d025eaf1d9bbb10a4616c71813ea7054.zip
Bug fix on organization
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go7
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) {