]> source.dussan.org Git - gitea.git/commitdiff
Hide 2FA status from other members in organization members list (#22999) (#23023)
authorYarden Shoham <hrsi88@gmail.com>
Tue, 21 Feb 2023 00:14:39 +0000 (02:14 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Feb 2023 00:14:39 +0000 (19:14 -0500)
Backport #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>
templates/org/member/members.tmpl

index fceb0801341bd1c758d9f820bad05c8a0d88a992..176de69e5aeec45cbc148ee18c1525c1162daec9 100644 (file)
@@ -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">