Skip to content

Commit 9567d2b

Browse files
ensure group header only shows teams link if actor is group admin or owner
1 parent ba74fcd commit 9567d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/group/menu.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="ui small label">{{.RepoCount}}</div>
88
{{end}}
99
</a>
10-
{{if .IsGroupMember}}
10+
{{if or .IsGroupOwner .IsGroupAdmin}}
1111
<a class="{{if $.PageIsGroupTeams}}active {{end}}item" href="{{$.OrgGroupLink}}/teams">
1212
{{svg "octicon-people"}} {{ctx.Locale.Tr "org.teams"}}
1313
{{if .NumTeams}}

0 commit comments

Comments
 (0)