diff options
author | Unknwon <u@gogs.io> | 2015-11-30 21:18:33 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-30 21:18:33 -0500 |
commit | 117afe762061001287d5a8e93c8bcb2d1efbc1ad (patch) | |
tree | 5750ed8bcdc7fd65de722cec44c5018346fe0888 /routers | |
parent | d3a5ff7b6b16ea35bd31fcef902b08dcf266de9c (diff) | |
parent | e57b2dffa42e554810d9b3f027bd8c5e12ba7369 (diff) | |
download | gitea-117afe762061001287d5a8e93c8bcb2d1efbc1ad.tar.gz gitea-117afe762061001287d5a8e93c8bcb2d1efbc1ad.zip |
Merge pull request #2069 from nanoant/patch/admin-see-all-organizations
Admin should be able to see all organizations
Diffstat (limited to 'routers')
-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 |