summaryrefslogtreecommitdiffstats
path: root/routers/user/home.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-28 15:43:25 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-28 15:43:25 -0400
commit5dbfe3c26c3dd227e287d52134e978084d5081e3 (patch)
tree35975dd05e85056d6c7b7e89f0bec1cc46273d80 /routers/user/home.go
parent6e448b07145fbb090e0da6deb97f244c2bfd7ba7 (diff)
downloadgitea-5dbfe3c26c3dd227e287d52134e978084d5081e3.tar.gz
gitea-5dbfe3c26c3dd227e287d52134e978084d5081e3.zip
Finish organization homepage
Diffstat (limited to 'routers/user/home.go')
-rw-r--r--routers/user/home.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index 86907b5a90..02dc1de154 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -83,6 +83,12 @@ func Profile(ctx *middleware.Context, params martini.Params) {
}
return
}
+
+ if u.IsOrganization() {
+ ctx.Redirect("/org/" + u.Name)
+ return
+ }
+
// For security reason, hide e-mail address for anonymous visitors.
if !ctx.IsSigned {
u.Email = ""