From b3af7484bc821d71cb20f6289f767119494bc81e Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Thu, 11 May 2023 15:56:25 +0900 Subject: [PATCH] Fix missing badges in org settings page (#24654) Improve #24232 Before: ![image](https://github.com/go-gitea/gitea/assets/18380374/e5c5a7b8-e071-4713-b622-5ae8e272d6fd) After: ![image](https://github.com/go-gitea/gitea/assets/18380374/5a9e38b5-384e-46c5-8400-dafebbd08fee) Co-authored-by: Giteabot --- routers/web/org/setting.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/web/org/setting.go b/routers/web/org/setting.go index 4111b1353..a8ad1daec 100644 --- a/routers/web/org/setting.go +++ b/routers/web/org/setting.go @@ -46,6 +46,7 @@ func Settings(ctx *context.Context) { ctx.Data["PageIsSettingsOptions"] = true ctx.Data["CurrentVisibility"] = ctx.Org.Organization.Visibility ctx.Data["RepoAdminChangeTeamAccess"] = ctx.Org.Organization.RepoAdminChangeTeamAccess + ctx.Data["ContextUser"] = ctx.ContextUser ctx.HTML(http.StatusOK, tplSettingsOptions) }