Skip to content

Commit

Permalink
Hide 2FA status from other members in organization members list (go-g…
Browse files Browse the repository at this point in the history
…itea#22999) (go-gitea#23023)

Backport go-gitea#22999

This is rather private information that should not be given to all
members in the same organization. Only show it to organization owners.

Co-authored-by: Brecht Van Lommel <brecht@blender.org>
(cherry picked from commit 660a83b)
  • Loading branch information
yardenshoham authored and Loïc Dachary committed Feb 23, 2023
1 parent 68f009f commit c19a5e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/org/member/members.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
</div>
</div>
<div class="ui two wide column center">
{{if $.IsOrganizationOwner}}
<div class="meta">
{{$.locale.Tr "admin.users.2fa"}}
</div>
Expand All @@ -51,6 +52,7 @@
{{end}}
</strong>
</div>
{{end}}
</div>
{{end}}
<div class="ui three wide column">
Expand Down

0 comments on commit c19a5e6

Please sign in to comment.