1
0
Fork 0
forked from forgejo/forgejo

Finish organization homepage

This commit is contained in:
Unknown 2014-06-28 15:43:25 -04:00
parent 6e448b0714
commit 5dbfe3c26c
9 changed files with 179 additions and 109 deletions

View file

@ -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 = ""