Skip to content

Commit 660a83b

Browse files
Hide 2FA status from other members in organization members list (go-gitea#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 <[email protected]>
1 parent 4c7786b commit 660a83b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: templates/org/member/members.tmpl

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
</div>
4040
</div>
4141
<div class="ui two wide column center">
42+
{{if $.IsOrganizationOwner}}
4243
<div class="meta">
4344
{{$.locale.Tr "admin.users.2fa"}}
4445
</div>
@@ -51,6 +52,7 @@
5152
{{end}}
5253
</strong>
5354
</div>
55+
{{end}}
5456
</div>
5557
{{end}}
5658
<div class="ui three wide column">

0 commit comments

Comments
 (0)