aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-10-04 15:52:57 +0800
committerGitHub <noreply@github.com>2023-10-04 07:52:57 +0000
commit99e2071eebe95e67f640c2bfd47de41a0e91a17e (patch)
treec4963ce9e881fc3492a4975f1af7d55ca13fed3f
parent1dd84ec3a16066698cca4256ad686e0386621ee2 (diff)
downloadgitea-99e2071eebe95e67f640c2bfd47de41a0e91a17e.tar.gz
gitea-99e2071eebe95e67f640c2bfd47de41a0e91a17e.zip
Fix yet another `ctx` template bug (#27417) (#27426)
Backport #27417 by @delvh Fixes #27416 Co-authored-by: delvh <dev.lh@web.de>
-rw-r--r--templates/shared/user/profile_big_avatar.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/shared/user/profile_big_avatar.tmpl b/templates/shared/user/profile_big_avatar.tmpl
index 598c194f19..47db7e23a6 100644
--- a/templates/shared/user/profile_big_avatar.tmpl
+++ b/templates/shared/user/profile_big_avatar.tmpl
@@ -83,7 +83,7 @@
<li>
<ul class="user-orgs">
{{range .Orgs}}
- {{if (or .Visibility.IsPublic (and ($.SignedUser) (or .Visibility.IsLimited (and (.HasMemberWithUserID $.SignedUserID) .Visibility.IsPrivate) ($.IsAdmin))))}}
+ {{if (or .Visibility.IsPublic (and ($.SignedUser) (or .Visibility.IsLimited (and (.HasMemberWithUserID ctx $.SignedUserID) .Visibility.IsPrivate) ($.IsAdmin))))}}
<li>
<a href="{{.HomeLink}}" data-tooltip-content="{{.Name}}">
{{ctx.AvatarUtils.Avatar .}}