summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-09-06 15:38:14 +0900
committerGitHub <noreply@github.com>2023-09-06 14:38:14 +0800
commit0850be6750b3df69e2eb5c52e7df53705c517fbc (patch)
tree7e83b220b36af5cbd99cd9d49bf80e886c82f06b /services
parent31c92d9695a43ff77a3eef2e8383343ef60f8ae7 (diff)
downloadgitea-0850be6750b3df69e2eb5c52e7df53705c517fbc.tar.gz
gitea-0850be6750b3df69e2eb5c52e7df53705c517fbc.zip
Fix the display of org level badges (#26504)
Follow #24654 #22705 #24232 In some pages we still have missing badges, for example: ![image](https://github.com/go-gitea/gitea/assets/18380374/f57fae6d-95ad-4996-8881-160c9cd27768) ![image](https://github.com/go-gitea/gitea/assets/18380374/11e86d43-b715-4d14-bdf0-51bf8b5c7b01) ![image](https://github.com/go-gitea/gitea/assets/18380374/61c514e7-d8f6-4c93-a61f-60604619e3a7)
Diffstat (limited to 'services')
-rw-r--r--services/context/user.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/context/user.go b/services/context/user.go
index 62d2dc0aa2..81c2746819 100644
--- a/services/context/user.go
+++ b/services/context/user.go
@@ -27,6 +27,7 @@ func UserAssignmentWeb() func(ctx *context.Context) {
}
}
ctx.ContextUser = userAssignment(ctx.Base, ctx.Doer, errorFn)
+ ctx.Data["ContextUser"] = ctx.ContextUser
}
}