Explorar el Código

#1101 Anyone can see organization pages even without logging in when sign in required

Unknwon hace 10 años
padre
commit
27c3c5415f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      cmd/web.go

+ 1 - 1
cmd/web.go

@@ -372,7 +372,7 @@ func runWeb(ctx *cli.Context) {
 	}, reqSignIn)
 	m.Group("/org", func() {
 		m.Get("/:org", org.Home)
-	}, middleware.OrgAssignment(true))
+	}, ignSignIn, middleware.OrgAssignment(true))
 
 	// Repository.
 	m.Group("/repo", func() {