Bug fix on organization
This commit is contained in:
parent
50de06056b
commit
9baf2b38d0
12 changed files with 164 additions and 35 deletions
|
@ -225,10 +225,6 @@ func runWeb(*cli.Context) {
|
|||
r.Get("/create", org.Create)
|
||||
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)
|
||||
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue