summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorZettat123 <zettat123@gmail.com>2023-05-06 18:54:26 +0800
committerGitHub <noreply@github.com>2023-05-06 10:54:26 +0000
commitbc888e5f9261d7d9eea2de88f7a803afffb8ded0 (patch)
tree80b817c16af251bd2c00c9ee88fc4a40f649b854 /templates
parent291c86804699ca00c937bfa58f3ee6a3263ea5ae (diff)
downloadgitea-bc888e5f9261d7d9eea2de88f7a803afffb8ded0.tar.gz
gitea-bc888e5f9261d7d9eea2de88f7a803afffb8ded0.zip
Fix incorrect user visibility (#24557)
Fix #24555
Diffstat (limited to 'templates')
-rw-r--r--templates/user/dashboard/navbar.tmpl4
1 files 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}}
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
<span class="org-visibility">
- {{if .ContextUser.Visibility.IsLimited}}<div class="ui basic tiny horizontal label">{{$.locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}}
- {{if .ContextUser.Visibility.IsPrivate}}<div class="ui basic tiny horizontal label">{{$.locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}}
+ {{if .SignedUser.Visibility.IsLimited}}<div class="ui basic tiny horizontal label">{{$.locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}}
+ {{if .SignedUser.Visibility.IsPrivate}}<div class="ui basic tiny horizontal label">{{$.locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}}
</span>
</a>
{{range .Orgs}}