summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-02-04 12:52:11 -0500
committerUnknwon <u@gogs.io>2016-02-04 12:52:11 -0500
commit739d5aa1d32229769acbdf53bd99222d13441b47 (patch)
tree7ca9e508ade455e660ff29a0995b26cefd8b8816 /cmd
parent04be8c0de5295f57e06e152e56c481b29b1076e5 (diff)
parentc3ff476ed67b69431e96fce8e5a16450976701f6 (diff)
downloadgitea-739d5aa1d32229769acbdf53bd99222d13441b47.tar.gz
gitea-739d5aa1d32229769acbdf53bd99222d13441b47.zip
Merge pull request #2530 from fnkr/hide-other-teams-repos-from-org-page
Hide other teams & repos from organization page
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 383940a049..a38b651041 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -350,11 +350,14 @@ func runWeb(ctx *cli.Context) {
m.Get("/members/action/:action", org.MembersAction)
m.Get("/teams", org.Teams)
+ }, middleware.OrgAssignment(true))
+
+ m.Group("/:org", func() {
m.Get("/teams/:team", org.TeamMembers)
m.Get("/teams/:team/repositories", org.TeamRepositories)
m.Route("/teams/:team/action/:action", "GET,POST", org.TeamsAction)
m.Route("/teams/:team/action/repo/:action", "GET,POST", org.TeamsRepoAction)
- }, middleware.OrgAssignment(true))
+ }, middleware.OrgAssignment(true, false, true))
m.Group("/:org", func() {
m.Get("/teams/new", org.NewTeam)