diff options
author | Brecht Van Lommel <brecht@blender.org> | 2023-02-21 00:16:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 17:16:29 -0600 |
commit | a82b9016c363a45c8e43b818b9f6e168e61bd8c8 (patch) | |
tree | fd12b5ce2d4bb10068dbb8edd1dbfd30128be57c /templates | |
parent | d845be661f5205b70d4fa6883e7912a5d2491218 (diff) | |
download | gitea-a82b9016c363a45c8e43b818b9f6e168e61bd8c8.tar.gz gitea-a82b9016c363a45c8e43b818b9f6e168e61bd8c8.zip |
Hide 2FA status from other members in organization members list (#22999)
This is rather private information that should not be given to all
members in the same organization. Only show it to organization owners.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/org/member/members.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/org/member/members.tmpl b/templates/org/member/members.tmpl index b76cb9778f..0eae60fbfc 100644 --- a/templates/org/member/members.tmpl +++ b/templates/org/member/members.tmpl @@ -39,6 +39,7 @@ </div> </div> <div class="ui two wide column center"> + {{if $.IsOrganizationOwner}} <div class="meta"> {{$.locale.Tr "admin.users.2fa"}} </div> @@ -51,6 +52,7 @@ {{end}} </strong> </div> + {{end}} </div> {{end}} <div class="ui three wide column"> |