From bc888e5f9261d7d9eea2de88f7a803afffb8ded0 Mon Sep 17 00:00:00 2001 From: Zettat123 Date: Sat, 6 May 2023 18:54:26 +0800 Subject: [PATCH] Fix incorrect user visibility (#24557) Fix #24555 --- templates/user/dashboard/navbar.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl index f6c86f935e..7703bbfb98 100644 --- a/templates/user/dashboard/navbar.tmpl +++ b/templates/user/dashboard/navbar.tmpl @@ -20,8 +20,8 @@ {{avatar $.Context .SignedUser}} {{.SignedUser.ShortName 40}} - {{if .ContextUser.Visibility.IsLimited}}
{{$.locale.Tr "org.settings.visibility.limited_shortname"}}
{{end}} - {{if .ContextUser.Visibility.IsPrivate}}
{{$.locale.Tr "org.settings.visibility.private_shortname"}}
{{end}} + {{if .SignedUser.Visibility.IsLimited}}
{{$.locale.Tr "org.settings.visibility.limited_shortname"}}
{{end}} + {{if .SignedUser.Visibility.IsPrivate}}
{{$.locale.Tr "org.settings.visibility.private_shortname"}}
{{end}}
{{range .Orgs}}