summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-09-01 06:31:42 +0100
committerGitHub <noreply@github.com>2021-09-01 01:31:42 -0400
commit57b0887ab21aaee9a70638df70f6dec0f72098c4 (patch)
treeb2034c61fe70b6ba8da68ff6a0db80bdba3a17cd /routers
parent83640a595b99c7e19133e649359a6f3d8133ca4c (diff)
downloadgitea-57b0887ab21aaee9a70638df70f6dec0f72098c4.tar.gz
gitea-57b0887ab21aaee9a70638df70f6dec0f72098c4.zip
Correctly return the number of Repositories for Organizations (#16807)
Calculate and return the number of Repositories on the dashboard Organization list. This PR restores some of the logic that was removed in #14032 to calculate the number of repos on the dashboard orgs list. Fix #16648 Replaces #16799 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers')
-rw-r--r--routers/web/user/home.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/home.go b/routers/web/user/home.go
index 6565010e0f..bb75558dc8 100644
--- a/routers/web/user/home.go
+++ b/routers/web/user/home.go
@@ -49,7 +49,7 @@ func getDashboardContextUser(ctx *context.Context) *models.User {
}
ctx.Data["ContextUser"] = ctxUser
- orgs, err := models.GetUserOrgsList(ctx.User.ID)
+ orgs, err := models.GetUserOrgsList(ctx.User)
if err != nil {
ctx.ServerError("GetUserOrgsList", err)
return nil