aboutsummaryrefslogtreecommitdiffstats
path: root/routers/user/profile.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-12-14 14:36:59 +0800
committertechknowlogick <techknowlogick@gitea.io>2019-12-14 01:36:59 -0500
commit484e3dc5a9012a50838bf8d00de3ffd136c0759b (patch)
treeb9b323e1f272ed11dd3d5fabc729e80df7e998dc /routers/user/profile.go
parentf6ba912cd6e1868e8f66c5a38cbe317f243d7806 (diff)
downloadgitea-484e3dc5a9012a50838bf8d00de3ffd136c0759b.tar.gz
gitea-484e3dc5a9012a50838bf8d00de3ffd136c0759b.zip
site admin could view org's members (#9346)
Diffstat (limited to 'routers/user/profile.go')
-rw-r--r--routers/user/profile.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/user/profile.go b/routers/user/profile.go
index 8a62ddeac0..90e832b530 100644
--- a/routers/user/profile.go
+++ b/routers/user/profile.go
@@ -15,6 +15,7 @@ import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/util"
+ "code.gitea.io/gitea/routers/org"
"code.gitea.io/gitea/routers/repo"
)
@@ -83,7 +84,7 @@ func Profile(ctx *context.Context) {
}
if ctxUser.IsOrganization() {
- showOrgProfile(ctx)
+ org.Home(ctx)
return
}