diff options
author | Adam Strzelecki <ono@java.pl> | 2015-11-28 22:31:06 +0100 |
---|---|---|
committer | Adam Strzelecki <ono@java.pl> | 2015-11-30 21:46:01 +0100 |
commit | e57b2dffa42e554810d9b3f027bd8c5e12ba7369 (patch) | |
tree | 848b72ca4cdd6b3cc4263551400b47619552b3a5 /routers/user | |
parent | ca96e04e5fafc179f2b0a5460754e0fb4fe9e2d8 (diff) | |
download | gitea-e57b2dffa42e554810d9b3f027bd8c5e12ba7369.tar.gz gitea-e57b2dffa42e554810d9b3f027bd8c5e12ba7369.zip |
Admin should be able to see all organizations
This is follow-up for 56c66ee486b4b8d544201662de62a23f36e6a069 allowing admin
to see private repositories, even when not being member of them.
Diffstat (limited to 'routers/user')
-rw-r--r-- | routers/user/home.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/home.go b/routers/user/home.go index df567eaf2c..8b25d799f1 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -316,7 +316,7 @@ func showOrgProfile(ctx *middleware.Context) { org := ctx.Org.Organization ctx.Data["Title"] = org.FullName - repos, err := models.GetRepositories(org.Id, ctx.IsSigned && org.IsOrgMember(ctx.User.Id)) + repos, err := models.GetRepositories(org.Id, ctx.IsSigned && (ctx.User.IsAdmin || org.IsOrgMember(ctx.User.Id))) if err != nil { ctx.Handle(500, "GetRepositories", err) return |