diff options
author | a1012112796 <1012112796@qq.com> | 2022-07-15 22:21:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-15 15:21:54 +0100 |
commit | 4f267ef64343f790ecbe23299effbc806f77ef6d (patch) | |
tree | 52482a913e777913cc583f977bdb55a8a4df15f7 /templates | |
parent | 7d20c8323a9d5d48631d7eb793dcd2d19b25f6d4 (diff) | |
download | gitea-4f267ef64343f790ecbe23299effbc806f77ef6d.tar.gz gitea-4f267ef64343f790ecbe23299effbc806f77ef6d.zip |
Allow access to the Public Organization Member lists with minimal permissions (#20330)
Examining Organization membership should not necessarily require sign-in if the organization is public and the members are public. Therefore we should adjust `/org/{org}/members` to not require login.
Fix #7501
Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/org/home.tmpl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index 06a9a36803..3ff86259d5 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -41,11 +41,9 @@ {{end}} <h4 class="ui top attached header df"> <strong class="f1">{{.locale.Tr "org.people"}}</strong> - {{if .IsOrganizationMember}} - <div class="ui"> - <a class="text grey dif ac" href="{{.OrgLink}}/members"><span>{{.Org.NumMembers}}</span> {{svg "octicon-chevron-right"}}</a> - </div> - {{end}} + <div class="ui"> + <a class="text grey dif ac" href="{{.OrgLink}}/members"><span>{{.MembersTotal}}</span> {{svg "octicon-chevron-right"}}</a> + </div> </h4> <div class="ui attached segment members"> {{$isMember := .IsOrganizationMember}} |