From 99e2071eebe95e67f640c2bfd47de41a0e91a17e Mon Sep 17 00:00:00 2001 From: Giteabot Date: Wed, 4 Oct 2023 15:52:57 +0800 Subject: [PATCH] Fix yet another `ctx` template bug (#27417) (#27426) Backport #27417 by @delvh Fixes #27416 Co-authored-by: delvh --- templates/shared/user/profile_big_avatar.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/shared/user/profile_big_avatar.tmpl b/templates/shared/user/profile_big_avatar.tmpl index 598c194f1909..47db7e23a6e8 100644 --- a/templates/shared/user/profile_big_avatar.tmpl +++ b/templates/shared/user/profile_big_avatar.tmpl @@ -83,7 +83,7 @@
    • {{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))))}}
    • {{ctx.AvatarUtils.Avatar .}}